iPhone blocks explained
<p>Hi all
Im trying to understand how blocks work. </p>

<pre><code>[UIView animateWithDuration:1 animations:^{
 blueViewController.view.alpha = 0;
 yellowViewController.view.alpha = 0;
}];
</code></pre>

<p>I would love to understand how they implemented this to make a transition. As i see it the block that updates the views's alpha to 0 can only be executed and that would result in an instant update and not a animation?.
It would properly help me understand how blocks work if someone could explain to me how they might have implemented the function.</p>

<p>also i think its a bit wierd that i the closure created by the block only create readonly variables. How am i then able to change the alpha without defining it with the "_<em>block" keyword? is the "</em>_block" only required for scaler types? (int / float ect).</p>
