What's the equivalent of Java's Thread.sleep() in Objective-C/Cocoa?

后端 未结 6 443
野的像风
野的像风 2020-12-23 15:45

In Java you can suspend the current thread\'s execution for an amount of time using Thread.sleep(). Is there something like this in Objective-C?

6条回答
提交回复
热议问题