Set the view programmatically

suggest change

Do 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()
  }

}

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents