2011-03-10 112 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

相關問題