什么是iOS睡眠功能 [英] what is the iOS sleep function
本文介绍了什么是iOS睡眠功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找一个函数,让一个线程在iOS上用于c ++代码,甚至是Objective-c代码,我的编译器无法识别
sleep(0)
I am looking for a function that puts a thread to sleep on iOS for c++ code, or even objective-c code, sleep(0) is not recognized by my compiler
谢谢,
推荐答案
阻止.5秒:
[NSThread sleepForTimeInterval:.5];
这篇关于什么是iOS睡眠功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文