gresrun / GHSidebarNav

A clone of the new Facebook iOS UI paradigm
Apache License 2.0
607 stars 136 forks source link

Navigation button outside the sidebar #36

Closed menico closed 10 years ago

menico commented 10 years ago

Im trying to have a button on a viewcontroller that will have the same behaviour as if I would tap in the navigation sidebar button, so let say you have a navigation item Messages and you have a button in your viewcontroller also Messages how can you get it working ? I tried to use "presentViewController" but than the (IBAction)revealSidebar button doesnt work :( can anyone help me with this issu I'm using the storyboard version.

Thank you guys for your help.

gresrun commented 10 years ago

Did you try self.revealVC.contentViewController = messagesVC; (where self.revealVC is your GHRevealViewController)?

menico commented 10 years ago

Yes I did:

UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
UIViewController *vc = [storyboard instantiateViewControllerWithIdentifier:@"FindEventController"];
self.revealVC.contentViewController = vc;

And nothing is happening.

menico commented 10 years ago

I have tried a few other things but I still can't find a solution do you have any idea?

It would be very helpful if someone could help me out on this one.

Cheers

Meni

gresrun commented 10 years ago

Is your project available for me to look at?

menico commented 10 years ago

I have tried it in the basic storyboard repository I have comitted the entire map here : https://github.com/menico/GHSidebarNav-Storyboard-4

Thanks again for your help