dekatotoro / SlideMenuControllerSwift

iOS Slide Menu View based on Google+, iQON, Feedly, Ameba iOS app. It is written in pure swift.
MIT License
3.4k stars 754 forks source link

PushViewController Not Working in iOS11 #346

Open rathodbhavikkqc opened 6 years ago

rathodbhavikkqc commented 6 years ago

I'm using Latest (3.0.2) Version of SlideMenuControllerSwift. My Problem is that code is working perfect till iOS 10.3 but when i tested for iOS 11 in Xcode9 With Simulator method self.navigationViewController?.pushViewController is not working. View is not getting displayed.

I already Checked if navigationController is available or not but it is ok

nikhilcoolstuff commented 6 years ago

I've the same problem, doesnt seem to be related to this control but uinavigationcontroller in general.

NasirMalik commented 6 years ago

Same problem guys. Any helpful thing anyone got?

poonamdhomane commented 6 years ago

same problem here

BenjaminPiette commented 6 years ago

Same here. Works on simulator 11.2 but not on real device 11.0

diegoot-dev commented 3 years ago

try this code:

let storyBoard: UIStoryboard = UIStoryboard(name: "Profile", bundle: nil) let vc = storyBoard.instantiateViewController(withIdentifier: "profile")

if let nav = self.slideMenuController()?.mainViewController as? UINavigationController { nav.pushViewController(vc, animated: true) }