开发者

How to handle iPad Modal View rotation

I have 2 views, each for portrait and landscape. I start by displaying the portrait view. On both the views, I have a button, which presents a modal view on clicking it. When the modal view comes up and then I rotate the iPad, the portrait view is replaced by the landscape view, but the modal view goes behind this view. Any idea how to bring the modal view again to the fro开发者_开发问答nt after the rotation?

Thanks for the help Farha


You can use:

-(void)bringSubviewToFront:(UIView *)view

As long as you have the super view and the view you want to bring to the front.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜