【发布时间】:2014-11-10 10:06:23
【问题描述】:
我在我的应用程序中使用VFR PDF viewer library,我在其中展示它:
ReaderDocument *document = [ReaderDocument withDocumentFilePath:pdfFile password:nil];
ReaderViewController *vc = [[ReaderViewController alloc] initWithReaderDocument:document];
[self.navigationController pushViewController:vc animated:YES];
如果我在 iOS7 上运行,一切正常。
如果我在 iOS8 上运行我的应用程序,ReaderViewController 中的 willRotateToInterfaceOrientation 方法永远不会被调用,因此当设备旋转时,文档不会被正确地重新格式化。
但是,如果我在 iOS8 上运行库附带的演示应用程序,ReaderViewController 中的 willRotateToInterfaceOrientation 确实会被调用,这让我相信库没问题,我做错了什么(或忽略了做某事) 在我的应用中。
我对这种行为感到很困惑。为什么 willRotateToInterfaceOrientation 在 iOS8 上的我的应用程序中没有被调用,但在其他变体中却可以调用?我该如何尝试追踪?
【问题讨论】:
标签: ipad ios8 uiinterfaceorientation vfr-reader