Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private func IniciarMainAdmin(){
- let mainAdmin = UIStoryboard(name: "Main", bundle: Bundle.main)
- guard let mainAdminNVC = mainAdmin.instantiateViewController(withIdentifier: "NCMainAdmin") as? NCMainAdmin else{
- return
- }
- present(mainAdminNVC, animated: true, completion: nil)
- }
- override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
- let destViewController = segue.destination as! NCMainAdmin
- let secondViewcontroller = destViewController.viewControllers.first as! NCMenuAdmin
- secondViewcontroller.adminUserData = "This is a test"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement