如何横屏...iOS 开发

ruandao 发布于 2014年06月08日 | 更新于 2014年06月09日
无人欣赏。

额,成这样了 alt text

嗯,可以监听 UIDeviceOrientationDidChangeNotification 然后重置下 frame 但是感觉太累

不知道有没有简单的方法

我只需要支持横屏,不需要竖屏

only ios7+

共6条回复
ruandao 回复于 2014年06月08日

也可以直接 CGRectMake(0, 0, self.view.frame.size.width, 165) 改为 CGRectMake(0, 0, self.view.frame.size.height, 165)

就是有些...

pinxue 回复于 2014年06月08日

配置里把竖屏去掉,用 autolayout 的话很简单的

tinyfool 回复于 2014年06月08日

这类问题建议先看文档,然后问

ruandao 回复于 2014年06月08日

2楼 @pinxue tks

yangjie6020 回复于 2014年06月09日

read the fucking documents

ruandao 回复于 2014年06月09日

5楼 @yangjie6020 重复的事情就不需要做了,别浪费自己时间

登录 或者 注册
相关帖子