如何使用xcode 3.2.6在橫向模式下創建通用應用程序默認情況下?我需要爲每個視圖分離.xib文件,我是否必須使用此代碼 - (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {//對於支持的方向返回YES return(interfaceOrientation == UIInterfaceOrientationLandscape); }universal xcode 3.2.6默認的橫向模式
0
A
回答
0
我使用此示例代碼,並使其基於視圖我只隱藏其導航b AR由RootViewController_Phone.h和RootViewController_Pad BenellingsonPost
0
在你的plist,你應該改變supported interface orientations
只是兩個項目:
項目0 Landscape (right home button)
項目1 Landscape (left home button)
而且在每個視圖控制器使用:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return (UIInterfaceOrientationIsLandscape(interfaceOrientation));
}
相關問題
- 1. Xcode 4&Xcode 3.2.6
- 2. 如何停止Xcode 3.2.6默認iPad模擬器?這是新的行爲嗎?
- 3. 的XCode:如何更改的橫向和縱向模式
- 4. 如何在WP7中更改橫向模式下的ApplicationBar默認大小?
- 5. Base SDK Xcode 3.2.6
- 6. Xcode 6中的默認設備方向
- 7. 根據當前橫向模式自動旋轉默認應用程序圖像
- 8. 旋轉視圖以橫向模式
- 9. UIAlertView在橫向模式
- 10. iPhone橫向模式問題
- 11. Simperium登錄橫向模式
- 12. 兩個橫向模式
- 13. 只在橫向模式
- 14. printPreview橫向模式inC#
- 15. AutoCompleteTextView提示橫向模式
- 16. XCode 4和XCode 3.2.6並排
- 17. 方向縱向和橫向模式
- 18. SharedPreferences默認模式
- 19. @Autowire默認模式
- 20. iOS教程Xcode 3.2.6
- 21. Xcode 3.2.6和Mountain Lion
- 22. 有沒有辦法在Xcode 8中將故事板默認爲橫向?
- 23. UICollectionViewCell地方細胞在橫向模式
- 24. 如何在Xcode 4中將視圖變爲橫向模式
- 25. 在Xcode 4中重新啓用橫向模式
- 26. UISplitView - 橫向模仿人像模式
- 27. 橫向佈局不能在橫向模式下工作
- 28. 橫向模式下的tabbar控制器
- 29. UIModalPresentationFormSheet在橫向模式下的iPad
- 30. 橫向模式下的中心VideoView
@iphonemaclover,大使用此代碼
self.navigationController.navigationBarHidden = YES;
! – iNoob 2012-03-22 03:10:43