aperechnev / SidebarOverlay

Yet another implementation of sidebar menu, but here your menu appears over the top view controller.
MIT License
67 stars 28 forks source link

How I back to TopViewController after ? #38

Closed kristoff2016 closed 7 years ago

aperechnev commented 7 years ago

After what?

kristoff2016 commented 7 years ago

let myMusicViewController = MyMusicViewController() self.so_containerViewController?.topViewController = myMusicViewController

kristoff2016 commented 7 years ago

func handleFirst(){ let homeController = FirstController() self.so_containerViewController?.topViewController = homeController } I got crash

aperechnev commented 7 years ago

Which crash? Post a log.

aperechnev commented 7 years ago

Or screenshot. It would be better.

kristoff2016 commented 7 years ago

example I stayed home page when app loaded. then I go to another page ProfileVontroller then I back to home page. does it do the same ? let profileViewController = self.storyboard!.instantiateViewControllerWithIdentifier("profileViewController") self.so_containerViewController.topViewController = profileViewController

aperechnev commented 7 years ago

let homeController = FirstController()

You have to load this view controller from the storyboard, the same way as:

let profileViewController = self.storyboard!.instantiateViewControllerWithIdentifier("profileViewController")