iPhone SDK: How to trigger drawRect on UIView subclass after orientation change?

Posted by Harkonian on Stack Overflow See other posts from Stack Overflow or by Harkonian
Published on 2010-03-26T19:32:03Z Indexed on 2010/03/26 19:33 UTC
Read the original article Hit count: 661

Filed under:
|
|

I am subclassing a UIView and overwrite the drawRect method. I'm noticing that the view's drawrect is only being called when the view first loads. After that it is never called again. How to I make sure it gets called after an orientation change? I've tried calling setNeedsDisplay on the view before and after the rotation and that doesn't do it.

© Stack Overflow or respective owner

Related posts about iphone-sdk

Related posts about uiview