continously change UIView background color
<p>I am new to iphone dev and in the process of reading Apress.Beginning.Iphone4.Dev, don't know if this is the fastest way to become good in developing iphone apps.
    Well I am currently in chapter 4 , I have finished implementing the sample code, but I want to add a little mod.</p>

<ul>
<li>button called disco</li>
<li><p>if pressed, Touch Up Inside , will start changing 
<code>self.view.backgroundColor</code> values randomly 100 times 
in a for loop.</p>

<p>My problem is the background only changes after the IBAction connected to the button
disco, finished, so I could only see one color change instead of at least 2 color changes.</p></li>
</ul>

<p>my suspicion is that, the view does not get refreshed / reloaded until the IBAction is completed , is this suspicion correct ?</p>

<p>is it possible to achieve the feature I wish to implements, 
- touch a button
- background color changes randomly for 100 times.</p>

<p>Thank you in Advance and sorry for the newb question.
timex88</p>

<p>========================</p>

<p>Thank you all, I got this working thanks to your pointers. but instead of 100 times,
I let the <code>changeBgColor</code> method run indefinitely. </p>

<p>What i noticed was, while the <code>changeBgColor</code> still runs, if I were to touch the disco 
button again, the rate of <code>changeBgColor</code> method being executed became higher, can someone please explain the reason ?</p>

<p>Thanks again
timex 88</p>
