i want to refresh my current view when i click a button how to do this
the compiler is showing warning that this class may not respond to +setNeedsDisplay...
Online
2010-08-05 04:41:50
You need to send setNeedsDisplay to a concrete instance of a view not to UIView (the class).
tonklon
2010-08-05 07:17:46
if you're trying to send this message to UIViewController, you indeed will get the warning. If you want to refresh the view, that is associated with a certain view controller, you should call this message as following: [self.view setNeedsDisplay].
Nava Carmon
2010-08-05 11:41:25