上一页 1 2 3 4 5 6 7 8 9 ··· 22 下一页
摘要: 关于 - headerViewForSection returns nil问题 在通过 -tableView: viewForHeaderAtSection: 设置headerView,然后再去通过headerViewForSection取的时候 ,发现返回结果为nil; 究其原因... 阅读全文
posted @ 2015-07-24 16:48 沙影无痕 阅读(431) 评论(0) 推荐(0) 编辑
摘要: dispatch_async 避免数据处理等耗时,采用异步多线程执行:dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ // 耗时的数据处理等 dispat... 阅读全文
posted @ 2015-07-22 17:15 沙影无痕 阅读(479) 评论(0) 推荐(0) 编辑
摘要: 首先我们定义变量: NSTimeInterval totalDration;@property (strong, nonatomic) AVPlayer *player;@property (retain, nonatomic) AVPlayerItem *playerItem... 阅读全文
posted @ 2015-07-21 10:59 沙影无痕 阅读(5840) 评论(0) 推荐(0) 编辑
摘要: C++中引入了关键字inline,我们称之为内联函数; 内联函数的作用体现在对于频繁调用的小函数上,太长代码的函数显然不适合声明为内联函数,这无疑会加大内存的消耗。 eg:#include //define inline inline bool isValueValid(int ... 阅读全文
posted @ 2015-07-13 09:10 沙影无痕 阅读(518) 评论(0) 推荐(0) 编辑
摘要: 关于NSTimer的几点说明 (1)NSTimer 会对它的方法接收者(target)retain; (2)NSTimer不是一种实时的机制,可能会存在延时,而延迟多少取决于当前线程; (3)NSTimer添加到Runloop中才会生效。NSTimer其实也是一种资源,所有的sour... 阅读全文
posted @ 2015-07-08 09:49 沙影无痕 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Build Active Architecture Only 这个属性, 设置为NO时,编译支持的多个版本,如: armv7,arm64 设置为YES时,编译出的版本是可以向下进行兼容的,用iPhone4编译出来的是armv7版本的,iPhone5(armv7s)也可以运行,但是ar... 阅读全文
posted @ 2015-07-01 11:59 沙影无痕 阅读(262) 评论(0) 推荐(0) 编辑
摘要: WKWebView打印页面的实现 if ([UIPrintInteractionController isPrintingAvailable]) { UIPrintInfo *pint = [UIPrintInfo printInfo]; pi... 阅读全文
posted @ 2015-06-29 11:20 沙影无痕 阅读(228) 评论(0) 推荐(0) 编辑
摘要: WKWebView进度及titleWKWebView 的estimatedProgress和title 都是KVO模式,所以可以添加监控: [webView addObserver:self forKeyPath:@"estimatedProgress" options:NSK... 阅读全文
posted @ 2015-06-29 11:05 沙影无痕 阅读(282) 评论(0) 推荐(0) 编辑
摘要: + (NSString *) paramValueOfUrl:(NSString *) url withParam:(NSString *) param{ NSError *error; NSString *regTags=[[NSString alloc] initWi... 阅读全文
posted @ 2015-06-18 14:42 沙影无痕 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 获取linphone demo git 方式: git clone git://git.linphone.org/linphone-iphone.git —recursive 博主下载获取到的是 build 2.2.6 版本linphone sdk 包含了众多的静态库文件,通过git... 阅读全文
posted @ 2015-06-17 20:04 沙影无痕 阅读(2538) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 22 下一页