| 标题 | ios后台处理数据存储线程 |
| 分类 | 范文、应用文-IT技术专栏-技术文章 |
| 内容 | 在类中,进行编辑下面的代码: nslog(@main thread begin...); [self performselectorinbackground:@selector(dosomething:) withobject:nil]; nslog(@main thread end.....); - (void) dosomething:(id)sender { nslog( @one thread begin... ); nsautoreleasepool *pool = [[nsautoreleasepool alloc] init]; for (int i=0; i<self.starname_final.count; i++) { [self savetodatabase:[starname_final objectatindex:i]]; } nslog( @one thread end... ); [pool release]; } |
| 随便看 |
|
客官网考试资料包含高考、自考、专升本考试、人事考试、公务员考试、大学生村官考试、特岗教师招聘考试、事业单位招聘考试、企业人才招聘、银行招聘、教师招聘、农村信用社招聘、各类资格证书考试等各类考试资料。