tags:

views:

69

answers:

1

i want to refresh my current view when i click a button how to do this

+1  A: 

[yourView setNeedsDisplay];

Nava Carmon
the compiler is showing warning that this class may not respond to +setNeedsDisplay...
Online
You need to send setNeedsDisplay to a concrete instance of a view not to UIView (the class).
tonklon
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