Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一个函数,它可以让 iOS 上的线程进入 c++ 代码,甚至是 Objective-c 代码,我的编译器无法识别 sleep(0)
谢谢,
阻塞 0.5 秒:
[NSThread sleepForTimeInterval:.5];