Guest User

Untitled

a guest
Jul 18th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. DBManager.sharedDatabase().insertRecord("INSERT INTO AppPassword (UserId,AppPassword) VALUES ('(userId)','(AllText)')")
  2.  
  3. if UserDefaults.standard.bool(forKey: "isValidLogin")
  4.  
  5. self.window?.rootViewController = tabbarcontoller
  6.  
  7. self.window?.makeKeyAndVisible()
  8.  
  9. }
  10.  
  11. else
  12.  
  13. {
  14.  
  15. func setRootVC()
  16.  
  17. let login = storyboard.instantiateViewController(withIdentifier: "LoginUser")
  18.  
  19. navVC.setViewControllers([login], animated: false)
  20.  
  21. self.window?.rootViewController = navVC
  22.  
  23. self.window?.makeKeyAndVisible()
  24.  
  25. }
  26. }
  27. }
Add Comment
Please, Sign In to add comment