2011-02-14 48 views
0

我想在我的应用程序启动时调用willAnimateRotationToInterfaceOrientation方法,我该如何强制此方法脚趾执行? 当我现在转动装置:(强制willAnimateRotationToInterfaceOrientation方法

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 
{  
    return YES; 
} 

一个细节......当设备处于横向模式下,它被称为这只是调用,但是当我开始在垂直模式设备永远不会调用此方法:(

回答

0

为什么不直接在Info.plist文件中将方向设置为UISupportedInterfaceOrientations?