Call drawRect when i click on button in objective c?
How to Call drawRect when开发者_如何学JAVA 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..
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).
精彩评论