Created
September 13, 2018 18:01
-
-
Save rockbruno/4cf88fe207fdcccf6dcd259ac3710eb3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final class MyViewController: UIViewController { | |
let myView = MyView() | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
setupMyView() | |
} | |
private func setupMyView() { | |
view.addSubview(myView) | |
//Umas 10 linhas de constraints | |
myView.delegate = self | |
//Agora temos tanto a 'view' quanto a 'myView'... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment