UIActionSheet方向 [英] UIActionSheet orientation

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

问题描述

是否可以通过编程方式设置UIActionSheet的方向?我的iPhone方向为纵向,但UIActionSheet必须为横向.能做到吗?

Is there any way to set the orientation of the UIActionSheet programatically? My iPhone orientation is Portrait, but the UIActionSheet need to be Landscape. Can this be done?

所以我的问题是我不想将rootviewcontroller旋转到横向模式,只想将UIActionSheet旋转.那么这有可能吗?

So my problem is that I don't want to rotate the rootviewcontroller to landscape mode, only the UIActionSheet. So is this possible somehow?

推荐答案

因此,我向视图添加了一个视图,以在其中显示UIActionSheet,然后旋转添加的视图,然后在该视图中添加UIActionSheet.

So I added a view to my view in which I want to display the UIActionSheet, then rotated the added view and then added the UIActionSheet in this view.

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

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