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

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

[NSThread sleepForTimeInterval:0.5]; 

posted @ 2013-03-12 10:39  ygm900  阅读(29652)  评论(0编辑  收藏  举报