摘要: iPhone重绘机制iPhone 双缓冲机制 阅读全文
posted @ 2011-08-15 23:16 HA-LOU 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 对不同版本定义不同casehttp://stackoverflow.com/questions/367368/how-to-define-a-preprocessor-symbol-in-xcode 阅读全文
posted @ 2011-08-15 11:19 HA-LOU 阅读(1271) 评论(0) 推荐(0) 编辑
摘要: http://blog.5d.cn/user7/luhui/200508/146260.html 阅读全文
posted @ 2011-08-07 10:54 HA-LOU 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2011-08-02 21:37 HA-LOU 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 苹果Mac OS X操作系统下,隐藏文件是否显示有很多种设置方法,最简单的要算在Mac终端输入命令。显示/隐藏Mac隐藏文件命令如下(注意其中的空格):显示Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool true隐藏Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool false设置后重启下FinderKillAll Finder 阅读全文
posted @ 2011-07-14 19:57 HA-LOU 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 1.转载[NSThread detachNewThreadSelector:@selector(delTargetBook) toTarget:self withObject:nil];-(void)delTargetBook{ NSAutoreleasePool *pool =[[NSAutoreleasePool alloc] init]; //代码部分 //代码部分 //回主线程执行 [self performSelectorOnMainThread:@selector(didDelTargetBook) withObject:nil waitUntilDone:NO]; [pool r 阅读全文
posted @ 2011-07-14 08:51 HA-LOU 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 1.转载 dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{ // Show the HUD in the main tread dispatch_async(dispatch_get_main_queue(), ^{ // No need to hod onto (retain) MBProgressHUD *mbp = [MBProgressHUD showHUDAddedTo:self animated:YES]; mbp.labelText = @" 解压中,请等待... 阅读全文
posted @ 2011-07-14 08:49 HA-LOU 阅读(196) 评论(0) 推荐(0) 编辑
摘要: AVFoundationframeworkCoreMediaframework+ (UIImage*) thumbnailImageForVideo:(NSURL *)videoURL atTime:(NSTimeInterval)time { AVURLAsset *asset = [[[AVURLAsset alloc] initWithURL:videoURL options:nil] autorelease]; NSParameterAssert(asset); AVAssetImageGenerator *assetImageGenerator = [[[AVAssetImageGe 阅读全文
posted @ 2011-06-25 00:04 HA-LOU 阅读(386) 评论(0) 推荐(0) 编辑
摘要: Registering Custom URL Schemes and Handling URL Requests 阅读全文
posted @ 2011-06-14 20:50 HA-LOU 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1.OpenEars 语音识别 阅读全文
posted @ 2011-05-28 21:11 HA-LOU 阅读(181) 评论(0) 推荐(0) 编辑