摘要:
- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. dispatch_queue_t queue = dispatch_get_global... 阅读全文
摘要:
NSDictionary *aDictionary = [[NSDictionary alloc]initWithObjectsAndKeys:@"tom",@"1",@"alex",@"2",@"josen",@"3", nil]; [aDictionary enumerateK... 阅读全文
摘要:
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ code to be executed after ... 阅读全文
摘要:
今天在Code4App上看了一个GCD倒计时的Demo,觉得不错代码贴出来备用-(void)startTime{ __block int timeout = 30; //倒计时时间 dispatch_queue_t queue = dispatch_get_global_queue(DI... 阅读全文