PopupController icon indicating copy to clipboard operation
PopupController copied to clipboard

how to make the background view cover the navigation bar when popup from a view embed in NavigationBar?

Open Elgins opened this issue 9 years ago • 3 comments

Hi Hansome Boy, I want ask you a question, if I want to make the background view which is the dark view cover the navigation bar as well as tabbar , how should I do?

many thks if you can tell me.

Elgins avatar Jul 10 '16 15:07 Elgins

@Elgins hi, thank you for your issue. Could you try create PopupController from your root view controller like,

if let root = UIApplication.sharedApplication().delegate?.window??.rootViewController  {
            PopupController.create(root).show(AnyViewController)
        }

or, if you have a tabbarcontroller, you can do it with your tabbarcontroller.

daisuke310vvv avatar Jul 11 '16 07:07 daisuke310vvv

I am going to try it, a li ga do go za i ma su

Elgins avatar Jul 11 '16 12:07 Elgins

Works for me!

Update for Swift 4

 if let root = UIApplication.shared.delegate?.window??.rootViewController {
     PopupController.create(root).show(AnyViewController)
 }

haroldogtf avatar Mar 28 '18 13:03 haroldogtf