iOS NSTimer 子线程 建立与取消

1.子线程中NSTimer的开启 首先在.m文件中声明两个属性一个是子线程 一个是子线程中的NSTimer。 @property (nonatomic, strong) NSThread *thread1; @property (nonatomic, strong) NSTimer *threadTimer; 而后用GCD在全局全队中建立一个子线程并建立NSTimer。 __weak __typ
相关文章
相关标签/搜索