Created
September 13, 2018 18:07
-
-
Save rockbruno/3e2b4a8cc31e4e49ce416438700928e9 to your computer and use it in GitHub Desktop.
This file contains 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, HasCustomView { | |
typealias CustomView = MyView | |
override func loadView() { | |
let customView = CustomView() | |
customView.delegate = self | |
view = customView | |
} | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
customView.render() //Algum método da MyView. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment