Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DBManager.sharedDatabase().insertRecord("INSERT INTO AppPassword (UserId,AppPassword) VALUES ('(userId)','(AllText)')")
- if UserDefaults.standard.bool(forKey: "isValidLogin")
- self.window?.rootViewController = tabbarcontoller
- self.window?.makeKeyAndVisible()
- }
- else
- {
- func setRootVC()
- let login = storyboard.instantiateViewController(withIdentifier: "LoginUser")
- navVC.setViewControllers([login], animated: false)
- self.window?.rootViewController = navVC
- self.window?.makeKeyAndVisible()
- }
- }
- }
Add Comment
Please, Sign In to add comment