首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

线程的应用

2012-08-01 
线程的使用//线程的创建方式[NSThread detachNewThreadSelector:@selector(getUserInfo:) toTarget:self w

线程的使用
//线程的创建方式



[NSThread detachNewThreadSelector:@selector(getUserInfo:) toTarget:self withObject:xxx];



- (void)getUserInfo:(NSString *)uid {

  NSAutoreleasepool *pool = [[NSAutoreleasepool alloc] init];

//要在线程中做的事

  [pool release];

}

热点排行