我使用的XCode 4.2(故事板)無法旋轉只有一個視圖
我想僅旋轉視圖之一(不是所有的觀點),但它不不像是會工作...要麼不的觀點得到旋轉或全部
我都檢查摘要中的支持意見,並在信息,我確信,應用「支持的接口方向」都在那裏
在類這與視圖相關我編寫了旋轉此特定視圖的函數:
-(BOOL) shouldAutoRotateToInterfactOrientation:(UIInterfaceOrientation)interfaceOrientation{
return(interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown||
interfaceOrientation != UIInterfaceOrientationPortrait||
interfaceOrientation != UIInterfaceOrientationLandscapeRight||
interfaceOrientation != UIInterfaceOrientationLandscapeLeft)
}
當我旋轉屏幕時它仍然不旋轉......任何線索?
你肯定那些「不平等「的經營者?你不應該使用「==」還是簡單地返回YES? – 2012-01-23 21:34:27
我嘗試了「是」,並試圖== ...沒有工作 – user1051935