您的位置:首页 > 其它

延迟调用

2016-04-25 11:49 260 查看
// [self performSelector:@selector(play:) withObject:self afterDelay:3];

// dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2.0*NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
// NSLog(@"========");
// });

[NSTimer scheduledTimerWithTimeInterval:2 target:self selector:@selector(play:) userInfo:nil repeats:NO];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: