延时执行方法

self performSelector: withObject: afterDelay:

 延迟事件再推出viewcontroller时要注意
//取消所有延迟事件
    [NSObject cancelPreviousPerformRequestsWithTarget:self];

原文地址:https://www.cnblogs.com/Bo-tree/p/5161314.html