在iOS 中使用sleep方法 让程序暂停几秒钟

只要在需要暂停的代码前添加如下代码即可:

[NSThread sleepForTimeInterval:0.5]; 

原文地址:https://www.cnblogs.com/ygm900/p/2955216.html