延迟1秒

        //延时一秒执行
        dispatch_time_t time = dispatch_time(DISPATCH_TIME_NOW, 1*NSEC_PER_SEC);
        dispatch_after(time, dispatch_get_main_queue(), ^{
            [weakSelf.navigationController popViewControllerAnimated:YES];
        });

 

posted @ 2017-04-24 11:45  超神船长  阅读(162)  评论(0编辑  收藏  举报