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

How to use multiple sw_front in a same Objective-C project Using story board or Programmatically? #802

Open
Saravana181187 opened this issue Aug 10, 2018 · 0 comments

Comments

@Saravana181187
Copy link

Saravana181187 commented Aug 10, 2018

In my application I have Implemented two way authentication(i.e) manager login and employee login, If manager login means I want navigate to Viewcontroller1 else employee login means I want to navigate viewcontroller2, Here my question is how to setup the multiple sw_front for two viewcontrollers, I Using Objective-C language for developing. Please can you make some sample for me.

I have tried the following code but it did't worked..
UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; SWRevealViewController *revealController = self.revealViewController; self.view.window.rootViewController = revealController; UIViewController *newFrontController = [sb instantiateViewControllerWithIdentifier:@"clientDetailView"]; UINavigationController *navigationController1 = [[UINavigationController alloc] initWithRootViewController:newFrontController]; [revealController pushFrontViewController:navigationController1 animated:YES];

Please help me for find the issue or provide some sample code..
Thanks..

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

1 participant