UIDocumentInteractionController hides the navigation bar when the status bar is larger (personal access point header)

So, the sey it header is exactly the UIDocumentInteractionController hiding behind the navigation bar when the status bar is longer in height due to the Personal Hotspot header. I give him my navigation controller. Looks like an iOS bug. Any solutions or workarounds?

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

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

enter image description here

+4
source share
2 answers

, "BAD". . , , . , - , 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];

}

0

UIDocumentInteractionController, p > > .

-2

Source: https://habr.com/ru/post/1569929/


All Articles