Ios 当状态栏变大时,UIDocumentInteractionController隐藏在导航栏后面(个人热点标题)

Ios 当状态栏变大时,UIDocumentInteractionController隐藏在导航栏后面(个人热点标题),ios,ios8,Ios,Ios8,所以,当状态栏因为个人热点标题而变得更高时,标题确实隐藏在导航栏后面。我给它我的导航控制器。看起来像是IOS错误。有什么解决方案或解决办法吗 UIDocumentInteractionController *pdfViewer = [UIDocumentInteractionController interactionControllerWithURL:url]; [pdfViewer setDelegate:self]; [pdfViewer presentPreviewAnimated:YE

所以,当状态栏因为个人热点标题而变得更高时,标题确实隐藏在导航栏后面。我给它我的导航控制器。看起来像是IOS错误。有什么解决方案或解决办法吗

UIDocumentInteractionController *pdfViewer = [UIDocumentInteractionController interactionControllerWithURL:url];
[pdfViewer setDelegate:self];
[pdfViewer presentPreviewAnimated:YES];

- (UIViewController *)documentInteractionControllerViewControllerForPreview (UIDocumentInteractionController *)controller {
    return self.navigationController;
}

尝试单击UIDocumentInteractionController文件,然后执行编辑器>嵌入>导航控制器。

所以这是我的“坏”解决方案。这段代码使用我的自定义类。它所做的应该是可读的。它正在更新导航控制器阵列中的每秒导航栏和第一个控制器,以便在某个时刻它应该是UIDocumentInteractionController提供的控制器。现在一切都很顺利

 _updateNavigationBarStyle = [self schedule:1 :^{
    self.navigation.navigationBar.translucent = NO;
    self.navigation.topViewController.view.top = self.navigation.navigationBar.bottom;
}].start;

- (void)documentInteractionControllerDidEndPreview:(UIDocumentInteractionController *)controller {
    [_updateNavigationBarStyle stop];

}

我真的不知道你在说什么。。。UIDocumentInteractionController是IOS类它不是UI类它不是UINavigationController的后代它只是NSObject。。。而且我在designer中也不使用它。。。那么你的答案来自哪里?你能发一些代码吗?对不起,我对这个问题有点困惑,但现在我明白了。这看起来确实像一个bug,但是您创建一个类来修复导航控制器的想法是明智的。