延迟事件执行事件

 [self performSelector:@selector(show) withObject:nil afterDelay:5];
//show事件在触发5秒之后执行

编程技巧