【发布时间】:2011-02-14 09:56:17
【问题描述】:
我想在我的应用程序启动时调用 willAnimateRotationToInterfaceOrientation 方法,如何强制执行此方法? 只有当我现在旋转设备时才会调用它:(
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return YES;
}
一个细节......当设备处于水平模式时它被调用但是当我以垂直模式启动设备时这个方法永远不会被调用:(
【问题讨论】:
标签: iphone objective-c ipad orientation autorotate