iOS UIViewController Set the view programmatically


Example

Swift

class FooViewController: UIViewController {

  override func loadView() {
    view = FooView()
  }

}