天天看點

IOS 多線程的一些總結

IOS 多線程 有三種主要方法

(1)NSThread

(2)NSOperation

(3)GCD

下面簡單介紹這三個方法 

1.NSThread

      調用方法如下: 

      如函數需要輸入參數,可從object傳進去。

    (1) [NSThread detachNewThreadSelector:@selector(thread

繼續閱讀