05 2013 档案
Objective-C基础语法之NSRunLoop
摘要:不进行讲解,直接上代码。1 #import <Foundation/Foundation.h>2 3 @interface Demo01 : NSObject4 5 6 -(void) run;7 -(void) start;8 9 @end 1 #import "Demo01.h" 2 3 @implementation Demo01 4 5 -(void) run 6 { 7 static int counter = 0; 8 9 while(![[NSThread currentThread]isCancelled]){10 [NSThrea...
阅读全文
浙公网安备 33010602011771号