摘要:
@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)