0
我使用的Xcode 4.2深化發展的應用旋轉的觀點,我是用故事板無法使用故事板
我試圖使應用程序可旋轉的,但它不牛逼旋轉,這裏是我使用的代碼:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown || interfaceOrientation != UIInterfaceOrientationLandscapeRight || interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown|| interfaceOrientation !=UIInterfaceOrientationPortrait);
}
,並在項目信息,我支持所有的方向....
我這麼想嗎?
感謝
你提到你有所有的方向支持。但是,在項目信息頁面中,您可以檢查屬性「支持的接口方向」屬性,並檢查所有方向是否存在 – jajo87 2012-01-16 19:35:09
「支持的接口方向」,類型:數組,值:4項(以及他們在那裏) – user1051935 2012-01-16 19:48:32