Wait during iPhone UI modification
<p>I am making modifications to elements on UI. There is no (extra) thread or any async. calls. However I want to give a slow motion effect, so wait specific time at each step in a for loop. How can I achieve this without blocking the UI?</p>

<p>Specifically, I am moving a button in a for loop. I can put</p>

<pre><code> [NSThread sleepForTimeInterval:5.0];
</code></pre>

<p>in the loop but button's position is not reflected on the UI until the loop ends; I think I should call something to 'redraw' the button at each for iteration.</p>

<p>Any ideas?</p>
