Override the view
property in your interface extension:
#import "CustomView.h"
@interface ViewController ()
@property (nonatomic, strong) CustomView *view;
@end
@implementation ViewController
// Only needed if you're not using storyboards
-(void)loadView
{
self.view = [CustomView new];
// Setup the rest of your view, e.g.
self.view.customLabel.text = @"Custom label text";
}
@end
EDIT: I've just noticed your using storyboards, so the loadView
isn't needed, but I've left this in for completeness for others