Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. private func IniciarMainAdmin(){
  2. let mainAdmin = UIStoryboard(name: "Main", bundle: Bundle.main)
  3. guard let mainAdminNVC = mainAdmin.instantiateViewController(withIdentifier: "NCMainAdmin") as? NCMainAdmin else{
  4. return
  5. }
  6. present(mainAdminNVC, animated: true, completion: nil)
  7. }
  8.  
  9. override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
  10. let destViewController = segue.destination as! NCMainAdmin
  11. let secondViewcontroller = destViewController.viewControllers.first as! NCMenuAdmin
  12. secondViewcontroller.adminUserData = "This is a test"
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement