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
Thanks,
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
Thanks,
Block for .5 seconds:
[NSThread sleepForTimeInterval:.5];