Set the view programmatically
suggest changeDo not call super.loadView(). Set view here, and do not load the view before this method returns.
class FooViewController: UIViewController {
override func loadView() {
view = FooView()
}
}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents