2011-03-10 163 views
1

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

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

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

任何人都可以帮助我吗?

回答

5

试试这个

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

OR

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

全部最好

+0

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