PDA

View Full Version : I need a way to instantly redisplay a view, any help would be great.




ausername
Mar 23, 2009, 10:45 AM
Hello, what I am trying to do is display a dot in a view, but I want the color to actively change while in a loop. The problem is that [self setNeedsDisplay:YES] seems to wait until the loop ends before redrawing the view. Is there a way to tell the view to redraw instantly, and not wait for the loop to end first? Any help would be much appreciated.



pstoehr
Mar 23, 2009, 11:39 AM
How about calling drawRect:?

Peter

kainjow
Mar 23, 2009, 11:48 AM
I think what you want is the display method.

ausername
Mar 23, 2009, 12:22 PM
Thanks, using display worked. Seems so obvious too. Thanks again.