tags:

views:

24

answers:

1

How to Call drawRect when i click on button in objective c ?

I want to call drawrect method of a view in my UItabbarcontroller. How i can do this ? Thanks in advance..

+1  A: 

Rather than calling drawRect method directly you must call -setNeedsDisplay or -setNeedsDisplayInRect: method on your view - that will force the view to redraw (so drawRect method will get called automatically).

Vladimir