会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
沙影无痕
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
22
下一页
2015年7月24日
关于 - headerViewForSection returns nil问题
摘要: 关于 - headerViewForSection returns nil问题 在通过 -tableView: viewForHeaderAtSection: 设置headerView,然后再去通过headerViewForSection取的时候 ,发现返回结果为nil; 究其原因...
阅读全文
posted @ 2015-07-24 16:48 沙影无痕
阅读(449)
评论(0)
推荐(0)
2015年7月22日
dispatch_async 嵌套使用避免卡顿
摘要: dispatch_async 避免数据处理等耗时,采用异步多线程执行:dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ // 耗时的数据处理等 dispat...
阅读全文
posted @ 2015-07-22 17:15 沙影无痕
阅读(491)
评论(0)
推荐(0)
2015年7月21日
AVPlayer视频播放的使用简介
摘要: 首先我们定义变量: NSTimeInterval totalDration;@property (strong, nonatomic) AVPlayer *player;@property (retain, nonatomic) AVPlayerItem *playerItem...
阅读全文
posted @ 2015-07-21 10:59 沙影无痕
阅读(11230)
评论(0)
推荐(0)
2015年7月13日
关于inline的用法
摘要: C++中引入了关键字inline,我们称之为内联函数; 内联函数的作用体现在对于频繁调用的小函数上,太长代码的函数显然不适合声明为内联函数,这无疑会加大内存的消耗。 eg:#include //define inline inline bool isValueValid(int ...
阅读全文
posted @ 2015-07-13 09:10 沙影无痕
阅读(556)
评论(0)
推荐(0)
2015年7月8日
关于NSTimer的几点说明
摘要: 关于NSTimer的几点说明 (1)NSTimer 会对它的方法接收者(target)retain; (2)NSTimer不是一种实时的机制,可能会存在延时,而延迟多少取决于当前线程; (3)NSTimer添加到Runloop中才会生效。NSTimer其实也是一种资源,所有的sour...
阅读全文
posted @ 2015-07-08 09:49 沙影无痕
阅读(150)
评论(0)
推荐(0)
2015年7月1日
Build Active Architecture Only
摘要: Build Active Architecture Only 这个属性, 设置为NO时,编译支持的多个版本,如: armv7,arm64 设置为YES时,编译出的版本是可以向下进行兼容的,用iPhone4编译出来的是armv7版本的,iPhone5(armv7s)也可以运行,但是ar...
阅读全文
posted @ 2015-07-01 11:59 沙影无痕
阅读(334)
评论(0)
推荐(0)
2015年6月29日
WKWebView 打印页面
摘要: WKWebView打印页面的实现 if ([UIPrintInteractionController isPrintingAvailable]) { UIPrintInfo *pint = [UIPrintInfo printInfo]; pi...
阅读全文
posted @ 2015-06-29 11:20 沙影无痕
阅读(248)
评论(0)
推荐(0)
WKWebView进度及title
摘要: WKWebView进度及titleWKWebView 的estimatedProgress和title 都是KVO模式,所以可以添加监控: [webView addObserver:self forKeyPath:@"estimatedProgress" options:NSK...
阅读全文
posted @ 2015-06-29 11:05 沙影无痕
阅读(288)
评论(0)
推荐(0)
2015年6月18日
获取URL的指定参数对应值
摘要: + (NSString *) paramValueOfUrl:(NSString *) url withParam:(NSString *) param{ NSError *error; NSString *regTags=[[NSString alloc] initWi...
阅读全文
posted @ 2015-06-18 14:42 沙影无痕
阅读(274)
评论(0)
推荐(0)
2015年6月17日
linphone sdk 的使用
摘要: 获取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 沙影无痕
阅读(2690)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
22
下一页
公告