【发布时间】:2014-09-15 12:17:08
【问题描述】:
我正在使用拆分视图控制器为 iPad 构建文章阅读应用程序。 我面临应用程序间歇性崩溃的问题,并且控制台中没有错误。 有时应用程序在更改方向时崩溃,有时它运行良好。
【问题讨论】:
标签: ios objective-c ipad exception orientation
我正在使用拆分视图控制器为 iPad 构建文章阅读应用程序。 我面临应用程序间歇性崩溃的问题,并且控制台中没有错误。 有时应用程序在更改方向时崩溃,有时它运行良好。
【问题讨论】:
标签: ios objective-c ipad exception orientation
如果您的应用程序在改变方向时崩溃,那么您必须在控制器中添加以下方法。
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
它会解决你的问题
【讨论】: