- 博客(6)
- 资源 (9)
- 收藏
- 关注
原创 关于 - headerViewForSection returns nil问题
关于 - headerViewForSection returns nil问题 在通过 -tableView: viewForHeaderAtSection: 设置headerView,然后再去通过headerViewForSection取的时候 ,发现返回结果为nil; 究其原因For a Header/Footer, we will take UITableViewHeaderFooter
2015-07-24 16:48:32 5306
原创 dispatch_async 嵌套使用避免卡顿
dispatch_async 避免数据处理等耗时,采用异步多线程执行:dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ // 耗时的数据处理等 dispatch_async(dispatch_get_main_queue(), ^{ // 更新UI
2015-07-22 17:15:38 3475
原创 AVPlayer视频播放的使用简介
首先我们定义变量: NSTimeInterval totalDration;@property (strong, nonatomic) AVPlayer *player;@property (retain, nonatomic) AVPlayerItem *playerItem;@property (retain, nonatomic) id playbackTimeObserver;而
2015-07-21 10:59:08 5221
原创 关于inline的用法
C++中引入了关键字inline,我们称之为内联函数; 内联函数的作用体现在对于频繁调用的小函数上,太长代码的函数显然不适合声明为内联函数,这无疑会加大内存的消耗。 eg:#include <stdio.h> //define inline inline bool isValueValid(int value) { return value > 0 ? true : false
2015-07-13 09:10:07 2849
原创 关于NSTimer的几点说明
关于NSTimer的几点说明 (1)NSTimer 会对它的方法接收者(target)retain; (2)NSTimer不是一种实时的机制,可能会存在延时,而延迟多少取决于当前线程; (3)NSTimer添加到Runloop中才会生效。NSTimer其实也是一种资源,所有的source如果要起作用,就得添加到runloop中去。因此NSTimer这种资源要想起作用,那必须也得要添加到runl
2015-07-08 09:49:50 564
原创 Build Active Architecture Only
Build Active Architecture Only 这个属性, 设置为NO时,编译支持的多个版本,如: armv7,arm64 设置为YES时,编译出的版本是可以向下进行兼容的,用iPhone4编译出来的是armv7版本的,iPhone5(armv7s)也可以运行,但是armv6(iPhone 2G/3G,iPod 1G/2G)的设备就不能运行了所以在调试的时候比较适宜设置 Build
2015-07-01 11:59:49 2490
teleport-assist-macos-3.5.5.dmg
2021-03-18
Genymotion 2.5.4 reg.exe 文件
2015-10-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人