iOS 延迟执行代码

    //延迟执行

    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)),dispatch_get_main_queue(), ^{

       //要执行的代码

        

    });

 

posted @ 2015-10-18 15:45  voidcat  阅读(198)  评论(0)    收藏  举报