我正在进行定向为iOS 5的项目。我的方向方法如下。
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
NSLog(@" My Orientation");
return YES;
}
然而,当我的应用程序启动时,我的日志消息会在控制台上显示两次,即我的
方向
会显示两次。我正在模拟器中测试我的应用程序,这种情况只发生在启动时,甚至没有改变方向
,然后再次改变方向
时也是如此。(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
每次都会被调用两次,我认为这不是正确的行为。非常感谢你的帮助。