如何从纵向自动旋转到横向模式? [英] How to autorotate from portrait to landscape mode?

查看:138
本文介绍了如何从纵向自动旋转到横向模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在iPhone上将图像从纵向自动旋转为横向模式?

How can I autorotate an image from portrait to landscape mode on the IPhone?

推荐答案

如果要显示新和不同的视图,最简单和最干净的解决方案是推送一个只支持横向模式(在shouldAutorotateToInterfaceOrientation:)的新视图控制器(presentModalViewController)。

If you want to display a new and different view, the simplest and cleanest solution is to push a new view controller (presentModalViewController) that only supports landscape mode (in shouldAutorotateToInterfaceOrientation:).

这篇关于如何从纵向自动旋转到横向模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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