我正在开发基于窗口的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