Object-C NSTimer定時器使用

在編程過程當中,總有須要使用到定時器的時候,Object-C中有專門的NSTimer: 編程 @interface NSTimer : NSObject //初始化,最好用scheduled方式初始化,否則須要手動addTimer:forMode: 將timer添加到一個runloop中。 + (NSTimer *)timerWithTimeInterval:(NSTimeInterval)ti
相關文章
相關標籤/搜索