UIAlertView 要求访问当前位置错误方向
我的应用程序当前要求用户访问其当前位置,因此当应用程序启动时,它会显示 UIAlertView 请求它。问题是我的应用程序仅设置为纵向模式,但 UIAlertView 以横向显示。我必须旋转手机才能使其正确定向。我在这里缺少什么?
My app currently asks the user for access to their current location, so when the app launches it shows the UIAlertView asking for it. The issue is that my app is set only for portrait mode, but the UIAlertView is displayed in landscape. I'd have to rotate the phone to have it oriented correctly. What am I missing here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看这篇文章:
http://iphonedevelopment.blogspot。 com/2008/12/more-on-uialertview-and-landscape.html
基本上,您可能需要在警报之前尝试类似的操作。
更新:这是一个带有替代解决方案帖子的SO。
旋转 UIAlertView
Checkout this post:
http://iphonedevelopment.blogspot.com/2008/12/more-on-uialertview-and-landscape.html
Basically you may need to try something like this before the alert.
UPDATE: Here is a SO with an alternate solution post.
Rotating a UIAlertView