摘要: 在ios开发过程中,经常会遇到在服务器端获取完数据通过后台使用多线程方式自动更新UI,通常的做法有两种:1、使用NSObject类的方法performSelectorInBackground:withObject:来创建一个线程。具体的代码:[Object performSelectorInBackground:@selector(doSomething:) withObject:nil];2、选择使用NSThread实现多线程。NSThread创建主要有两种方式:(1):[NSThread detachNewThreadSelector:@selector(doSomething:) toT 阅读全文
posted @ 2013-03-07 10:10 小乐" 阅读(201) 评论(0) 推荐(0) 编辑