Skip to content

Instantly share code, notes, and snippets.

@rockbruno
Created September 13, 2018 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rockbruno/4ebd574ebce3a2d650ec1f4c3d345001 to your computer and use it in GitHub Desktop.
Save rockbruno/4ebd574ebce3a2d650ec1f4c3d345001 to your computer and use it in GitHub Desktop.
final class MyViewController: UIViewController {
override func loadView() {
let myView = MyView()
myView.delegate = self
view = myView
}
override func viewDidLoad() {
super.viewDidLoad()
print(view) // Uma instância de 'MyView'!
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment