时间: 2020-11-23|54次围观|0 条评论

//    [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];
   

转载于:https://www.cnblogs.com/xiezefeng/p/5430376.html

原文链接:https://blog.csdn.net/weixin_30342827/article/details/96188769

本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。

本博客所有文章如无特别注明均为原创。
复制或转载请以超链接形式注明转自起风了,原文地址《延迟调用
   

还没有人抢沙发呢~