performselectorinbackground专题

NSThread的简单使用 及performSelectorInBackground:withObject

NSThread的简单使用 及performSelectorInBackground:withObject 在ios开发过程中,经常会遇到在服务器端获取完数据通过后台使用多线程方式自动更新UI,通常的做法有两种: 1、使用NSObject类的方法performSelectorInBackground:withObject:来创建一个线程。 具体的代码: [Ob