SHARE
TWEET

Untitled

a guest Jun 20th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top