开发者

Why is my view not resizing after rotating?

I'm only supporting the portrait orientation, but both the right-side-up and upside-down versions. Why do my subviews not resize appropriately? There's a status bar sized black space at the top of the view. If I change tabs开发者_高级运维 and come back, it's corrected.

http://www.irovr.com/img/temp/stackoverflow2.png


Check your frames to make sure that you are not copying parent frames. More than likely one of them is automatically adjusting for the status bar and the child views are accidentally copying the offset.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜