You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: