Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. let sb = UIStoryboard.init(name: "Main", bundle: nil)
  2. var vc10 = sb.instantiateViewController(withIdentifier: "ViewController10")
  3.  
  4. //vc10.delegate = self // there is the error: Value of type 'UIViewController' hs no member 'delegate'
  5. (ViewController10(vc10)).delegate = self // this did not work too
  6.  
  7. self.navigationController!.pushViewController(vc10, animated: true)
  8.  
  9. var delegate:ViewController9? // this is the property delegate
  10.  
  11. var vc10 = sb.instantiateViewController(withIdentifier: "ViewController10") as! ViewController10`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement