#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 {
//交替执行线程for ( int i = 0; i< 2; i++) { NSLog(@"%@%@",[NSThread currentThread],obj);}}
@end
新闻热点
疑难解答