摘要: @interface HMViewController ()@property (nonatomic, strong) NSThread *thread;@end@implementation HMViewController- (void)viewDidLoad{ [super viewDi... 阅读全文
posted @ 2015-06-14 10:34 cn.ios 阅读(102) 评论(0) 推荐(0)
摘要: - (IBAction)btnClick { // 1.获得当前的线程 NSThread *current = [NSThread currentThread]; NSLog(@"btnClick---%@", current); // NSThread *main =... 阅读全文
posted @ 2015-06-14 10:24 cn.ios 阅读(159) 评论(0) 推荐(0)
摘要: pthread的简单用法void *run(void *data) { NSThread *current = [NSThread currentThread]; for (int i = 0; i<20000; i++) { NSLog(@"run---%... 阅读全文
posted @ 2015-06-14 10:21 cn.ios 阅读(150) 评论(0) 推荐(0)
摘要: - (IBAction)btnClick { // 1.获得当前的线程 NSThread *current = [NSThread currentThread]; // 2.执行一些耗时操作 for (int i = 0; i<10000; i++) { ... 阅读全文
posted @ 2015-06-14 10:17 cn.ios 阅读(488) 评论(0) 推荐(0)
摘要: ios常用的基础框架框架名称功能Foundation提供OC的基础类(像NSObject)、基本数据类型等UIKit创建和管理应用程序的用户界面QuartzCore提供动画特效以及通过硬件进行渲染的能力CoreGraphics提供2D绘制的基于C的APISystemConfiguration检测当前... 阅读全文
posted @ 2015-06-08 19:05 cn.ios 阅读(142) 评论(0) 推荐(0)