我似乎在下面的代碼中遇到設備特定的問題,因爲它只在測試時影響iPhone 3GS。僅在iPhone 3GS上發生旋轉問題
基本上,接口不旋轉。它適用於比3GS更新的所有iPad和iPhone。如果你能幫助我,我將不勝感激!
代碼:
- (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation {
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
return YES;
} else {
return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
}
}
什麼是你正在測試的設備上的iOS版本?這聽起來更像我的問題,這是你的問題,而不是設備本身。 – WendiKidd 2012-07-18 03:07:04
該版本是iOS 5.1.1,這讓我很難理解它爲什麼不起作用。 – klcjr89 2012-07-18 03:11:39
呵呵。僅僅爲了澄清一下,它在你使用的其他測試設備上也是5.1.1。 – WendiKidd 2012-07-18 03:14:29