0

我知道这将是一个模糊的问题,但请考虑一下……我正在 ipad 上开发一个图书阅读器,它具有许多功能,如突出显示、注释等,所有这些功能都运行良好。但是只有当我在实现任何功能后尝试旋转我的设备时才会出现问题。在更改 itz 方向后应用程序被击中(或挂起)......

谁能告诉我为什么一个应用程序通常会被挂起????请考虑一下。您的意见将帮助我走很长的路......

谢谢

4

1 回答 1

0

问题可能出在您的控制框架设置上。

如果您的应用程序仅支持纵向模式意味着代码如下,

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

别的

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Return YES for supported orientations
    return YES;
}

并相应地更改控制框架。

于 2010-12-28T12:23:34.260 回答