Self.navigationController?.pushViewController fails screen transition when using Swift Library PageMenu

Asked 2 years ago, Updated 2 years ago, 99 views

Xcode 6.4, Swift is developing an ios app.

I am using Swift's library "PageMenu".
NextView without FirstView→ PegeMenu using PageMenu
Unable to transition to

UIButton is installed in FirstView and
when tap action is performed self.navigationController?pushViewController(NextView(), animated:true)
So, I want to transition, but nothing happens when I tap the button.

varmodalView=UINavigationController (rootViewController:NextView())
modalView.modalTransitionStyle=UIModalTransitionStyle.CoverVertical
self.presentViewController(modalView, animated:true, completion:nil)

If so, you can transition to modal, but if it is modal, you can transition to NextView
self.dismissViewControllerAnimated (true, completion:nil)
When you close the modal in , the PegeMenu tab bar installed in FirstView hides behind the NavigationBar.(Normal: PageMenu tab under NavigationBar)

Is there any solution?
Thank you for your cooperation.

ios swift xcode xcode6 ios8

2022-09-30 19:25

1 Answers

In case of modal transition

varmodalView=UINavigationController (rootViewController:NextView()) 
modalView.modalTransitionStyle=UIModalTransitionStyle.CoverVertical 
self.view.window?.rootViewController!.presentViewController(modalView, animated:true, completion:nil)

So, when I come back from NextView, the layout doesn't get corrupted.

Transitions using NavigationController are unresolved.


2022-09-30 19:25

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.