开发者

How to handle iPad Modal View rotation

开发者 https://www.devze.com 2022-12-31 12:05 出处:网络
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.

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

精彩评论

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