View Full Version : I need a way to instantly redisplay a view, any help would be great.
ausername
Mar 23, 2009, 11: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, 12:39 PM
How about calling drawRect:?
Peter
kainjow
Mar 23, 2009, 12:48 PM
I think what you want is the display method.
ausername
Mar 23, 2009, 01:22 PM
Thanks, using display worked. Seems so obvious too. Thanks again.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.