#import "NSThreadViewController.h"
@interface NSThreadViewController ()
@end
@implementation NSThreadViewController
- (void)viewDidLoad {     [super viewDidLoad];     // Do any additional setup after loading the view. }
-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
}
-(void)threadDemo{
}
-(void)demo:(id)obj {
//交替執(zhí)行線程for ( int i = 0; i< 2; i++) { NSLog(@"%@%@",[NSThread currentThread],obj);}}
@end
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注