You almost got it.
I published a demo-project on Github, just for you ;)
Finally, you need to actually add the view to the window. Do this in your AppDelegate
,
or wherever you think is suitable.
- (void)awakeFromNib {
[self.window.contentView addSubview:self.customViewController.view];
[self.customViewController.view setFrame:[self.window.contentView bounds]];
}
Or course, you first need to make an outlet for your view controller:
@property (assign) IBOutlet ITCustomViewController *customViewController;