将 iPhone 应用程序移植到 iPad 上以制作通用应用程序
我对 iPad 上的 UIActionSheet 有一个类似的问题,actionnaly 我有一个 iPhone 应用程序,我想在 iPad 上移植,对于 xib 来说,自动调整大小没有问题,做得很好,但对于我的 UIActionSheet 和alertViews我用来调用 UIDatePickers 我遇到了麻烦,第一个问题是alertView:它仅以纵向模式显示,它不随视图旋转(也许我可以用 PopOverController 替换它?)第二个问题是包含 UIDatePicker 的 UIActionSheet ,当我在 iPad 模拟器上时,它显示了一个小空矩形,尽管 UIDatePicker 我应该如何将我的 UIActionSheet 移植到 iPad 上?我正在等待你的帮助,非常感谢你
i have a similar question about UIActionSheet on iPad, actionnaly i have an iPhone app that i want to port on iPad, for the xib there is no problem the auto-Resizing is doing it very well, but for the UIActionSheet and the alertViews that i'm using to call UIDatePickers i have troubles, the first problem is the alertView: it displays only in portrait mode it doesn't rotate with the view (perhaps i could replace it with PopOverController?) the second problem is the UIActionSheet containing the UIDatePicker, when i'm on the iPad simulator it shows me a little empty rectangle inspite the UIDatePicker What should i do to port my UIActionSheet on iPad? i'm waiting for your help Thank you very much
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在这两种情况下,UIPopOverController 似乎都是合适的。主要区别在于 UIPopOverController 需要 viewController 来控制它。除此之外,它的实现类似于actionSheet 和alertView。
In both cases it seems like a UIPopOverController seem appropriate. The main difference is that the UIPopOverController expects a viewController to control it. Beyond that, it's implementation is similar to both an actionSheet and an alertView.