user2750892
user2750892

Reputation: 1

How can I call a sliding menu at any time, any view using storyboards on iOS?

I have gone through a lot of libraries which use a sliding menu at the first view, and then use it on every child view. But what I need to do is having it accessible at random views, which don't need to be child views from the main view. Does anyone know a library that would allow me to do that? Help would be much appreciated. (Sorry for bad english)

Upvotes: 0

Views: 204

Answers (1)

hammyhamhams
hammyhamhams

Reputation: 108

PKRevealController allows you to do this.

From within your Menu view controller, simply call:

  • (IBAction)openMenu:(id)sender { [self.revealController showViewController:self]; }

If you store a reference to your MenuView (say in your AppDelegate), you can call this method from anywhere.

Upvotes: 2

Related Questions