强制旋转到横向

问题描述:

我想我的应用程序的旋转是固定的景观......强制旋转到横向

我做了一些研究,但大部分帖子是关于检测的变化,

,我找不到任何关于强制一个。

任何人都可以帮助我吗?

试试这个

在plist中改变支持的接口方向以Lansdscape

OR

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { 
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); // home button on right 
} 

全部最好

+0

thanx!有效! – CosmicRabbitMediaInc 2011-03-10 04:50:34

您可以更改项目的info.plist,以便您的应用始终最初显示Landscape。然后您可以让您的视图控制器仅支持横向。

希望这也有助于

Only support for landscape Interface orientation

Launching application in landscape orientation for IPad