How to wait in Objective-C, maybe better in blocks? <p>I know of:</p> <p><code>performSelector:afterDelay:</code> and these, but I always have to make an extra method for every delay. In <code>Cocos2d-iphone</code> I use a <code>CCAction</code> for that <code>CCTimeDelay</code>, within a <code>CCSequence</code>. Would be cool if it would also work outside of <code>Cocos2d</code>.</p> <h1>1.</h1> <p>If I want to wait, lets say 1.3 seconds and don't want to split the method in half because of that, what should I do?</p> <h1>2.</h1> <p>I know when I want to wait and don't change the context, the thread will do nothing. So the performSelector methods are good for that.</p> <p>How to make it happen, that not the whole app waits, userInput should be accepted while waiting. Let's say I want to create an animation of two steps, in between there should be an time interval of 0.8 seconds. To keep it in one method but use <strong>multithreading</strong> I use <strong>blocks</strong> then (any other idea appreciated). How to wait inside the block, so the main thread won't get disturbed?</p>