Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #5686 Reply

    Luis Curiel

    Hello, I am developing an app and theplugin works awesome, we can see the PDFs without problems. Thing is, we are on iOS and thus there is no back button like on Android so to go back to the previous screen we have to make the navigation bar from the plugin to popup and hit back. That returns us to the previous page which is what we want BUT the navigation bar stays there moveing all our other elements down. Is there a way to hide the bar once we are outside of the PDF?
    thank you

    #5687 Reply

    Dr. Plug

    Hi Luis,

    Yes, there is an easy way to hide the navigation bar in iOS. With the ‘viewWillAppear:’ method of the UIViewController class or similar, in your code, you can call the ‘setHidden:’ method of the UINavigationBar. This code makes the navigation bar hidden after closing PDF View. Please see the below code.

    – (void)viewWillAppear:(BOOL)animated { … [self.navigationController.navigationBar setHidden: YES]; }


    Dr. Plug

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Hiding the navigation bar
Your information: