If you choose to create the views for your view controllers programmatically, then you need to implement the loadView method in your view controller subclass to set the view property.

Advertisements