我正在開發基於窗口的iPhone應用程序。 我想通過增加旋轉功能,基於iPhone的旋轉窗口應用程序
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
}
,但它不工作。 這有什麼問題。
注意:xCode 4,iOS 4.3
問候。
你在哪裏添加了這個方法?應用程序委託或自定義視圖控制器? – 2011-05-30 21:10:46
默認情況下,此方法添加到視圖控制器中。 – mannan 2011-05-31 11:15:39
您是如何從應用程序代理加載視圖控制器的? – 2011-05-31 11:22:41