aerlfredith
aerlfredith

Reputation: 1131

what is the iOS sleep function

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,

Upvotes: 28

Views: 29314

Answers (1)

user1603602
user1603602

Reputation: 974

Block for .5 seconds:

[NSThread sleepForTimeInterval:.5];

Upvotes: 55

Related Questions