UIPopOver和方向更改 [英] UIPopOver and orientation change

查看:68
本文介绍了UIPopOver和方向更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我有3个UIPopOvers。当用户点击工具栏中的按钮时,它们会出现。如果弹出窗口已经打开(例如-willAnimateRotationToInterfaceOrientation :),我需要在用户旋转iPad时使弹出框出现在正确的位置。

In my app I have 3 UIPopOvers. They appear when user taps buttons in the toolbar. I need to make the popovers appear in the correct place when user rotates iPad if the popover is already opened (like the -willAnimateRotationToInterfaceOrientation:).

我该怎么办?

提前致谢!

推荐答案

我唯一的解决方案到目前为止发现只是在旋转设备时关闭弹出窗口/

The only solution I've found so far is just closing the popover when the device is rotated/

这篇关于UIPopOver和方向更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆