Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening side menu using UITabBarController #7

Closed
RJiryes opened this issue Aug 16, 2015 · 4 comments
Closed

Opening side menu using UITabBarController #7

RJiryes opened this issue Aug 16, 2015 · 4 comments

Comments

@RJiryes
Copy link

RJiryes commented Aug 16, 2015

Hi, thanks for the great side menu. Is it possible to open the side menu from a UITabBarController from the storyboard demo?

@paresh-navadiya
Copy link

Yes its possible.

Set LGSideMenuController's rootViewController to your UITabBarController's instance.

For example :

objLGSideMenuController.rootViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"TabBarVC"];

@Friend-LGA
Copy link
Owner

Yes, like @safecase123 told above, you can use any UIViewController you want, just set it like rootViewController.
Check MainViewController.m in "Demo Storyboard"
You need to change this string:

self.rootViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"NavigationController"];

to

self.rootViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"TabBarController"];

Ofcourse "TabBarController" suppose to be real UITabBarController in storyboard.

@RJiryes
Copy link
Author

RJiryes commented Sep 1, 2015

Thanks! 👍 👍

@ahmedayoub95
Copy link

This popover my view controller but i need to push it so it can have back button or should i add button in that view controller in storyboard and present as .fullscreen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants