Search code examples
ios7statusbar

UIDocumentInteractionController overlaps statusbar in iOS 7


I have an iPad app that I'm migrating to iOS 7. Most of the 'issues' with the statusbar have been solved but sadly one remains. When I open a PDF document using the UIDocumentInteractionController I get my nice document preview. But when I tap on the pdf to get the statusbar for the "Open with..." dialog and the close button. It overlaps with the statusbar.

UIDocumentInteractionController statusbar overlap

I tried using the edgesForExtendedLayout method. But the UIDocumentInteractionController doesn't accept it. How do I prevent the statusbar from overlapping the UIDocumentInteractionController view?


Solution

  • Found new solution.

    In info.plist file add this for iOS 7: UIViewControllerBasedStatusBarAppearance (View controller-based status bar appearance) = NO