iphone 中让线程沉睡的方法?

iOS 码拜 9年前 (2015-05-09) 535次浏览 0个评论
 

在windows编程中,可以使用Sleep();将线程沉睡,但在iphone开发中用什么来实现线程的沉睡功能呢?
望指教..

自己顶下…
5分
[NSThread sleepForTimeInterval]或者[NSThread sleepUntilDate]
你想要的应该是这个吧
15分
usleep或sleep也行

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明iphone 中让线程沉睡的方法?
喜欢 (0)
[1034331897@qq.com]
分享 (0)

文章评论已关闭!