8

Status bar is initially hidden in Info.plist with "Status bar is initially hidden" set to YES and "View controller-based status bar appearance" set to NO.

But when I present a QlPreviewController, after two taps to document to make toolbar disappear and appear again, status bar appears in application too.

Any idea how to prevent this from happening?

1 Answers1

0

In your Info.plist file, set UIViewControllerBasedStatusBarAppearance as true. Then in all view controllers that you want to hide the status bar add the following code:

    - (BOOL)prefersStatusBarHidden {
        return YES;
    }

By doing this and create a sub class of QLPreviewController I was able to hide the status bar, even after returning from full screen state.