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

Two Fron View Controller #776

Open
mnifaf opened this issue Mar 29, 2018 · 0 comments
Open

Two Fron View Controller #776

mnifaf opened this issue Mar 29, 2018 · 0 comments

Comments

@mnifaf
Copy link

mnifaf commented Mar 29, 2018

hay i have a Login VC
After Login successfully
i want to navigate to front view controller on the basis of UserType
There are tow user type Customer and admin
I want two tow sw_front view when user is admin it goes to Admin front view vice versa
Because when i write below code in login vc
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let logInViewController = storyboard.instantiateViewController(withIdentifier: "Admin") as! AdminVc;
self.revealViewController().setFront(logInViewController, animated: true) . // (* this line)
But i fond error
unwrap while value is nil on (* this line)

// after login this below code must be run for redierect views
If(loginUser == Admin){
must be move to admin front vc here
}else {
must be move to customer
}
Help

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