what's the right way to cause a subview to redraw when the device orientation changes?

Posted by RobertL on Stack Overflow See other posts from Stack Overflow or by RobertL
Published on 2010-12-31T03:03:24Z Indexed on 2010/12/31 3:55 UTC
Read the original article Hit count: 195

Filed under:
|
|
|

I have a view controller with a view and one subview. When the device orientation changes the view auto-redraws but the subview doesn't. If I explicitly do [subview setNeedsDisplay] it redraws but I don't have a logical place to put that call in my code. And, since I don't have to explicitly tell the view to redraw, it seems counter-intuitive to tell the subview to redraw. Is there a way to make the subview auto-redraw when the view redraws?

© Stack Overflow or respective owner

Related posts about ios

Related posts about uiview