LeoNatan / LNPopupController

A framework for presenting view controllers as popups of other view controllers, much like the Apple Music and Podcasts apps.
MIT License
3.04k stars 342 forks source link

Question #479

Closed rastaman111 closed 3 years ago

rastaman111 commented 3 years ago

My application does not have a tabBarController, only a navigationController, and when I click on the bottom plate, a new window opens, the navigationController remains, how can I hide it? I attach a photo

image image image

iDevelopper commented 3 years ago

Who is self in your code?

It should be the navigation controller.

rastaman111 commented 3 years ago

Who is self in your code?

It should be the navigation controller.

I didn't understand what you told me. Show an example of Swift code please

LeoNatan commented 3 years ago

You are presenting the bar on the wrong controller. As @iDevelopper said, you need to present it on the navigation bar.

rastaman111 commented 3 years ago

You are presenting the bar on the wrong controller. As @iDevelopper said, you need to present it on the navigation bar.

how can i put a window on the navigation bar, i have 2 screens per application. 0-navigation bar, 1-root, 2-detail, do you suggest between 1 and 2 to insert a navigation bar?

LeoNatan commented 3 years ago

I am sorry, I don't understand what you are saying. You keep saying "window", but I don't think you mean a window.

If you want the popup bar to appear above the navigation bar, you should present it like this:

self.navigationController.presentPopupBar(withContentViewController: popupContentViewController, animated: true, completion: nil)