UIViewController initialization

UIViewController is loaded from NIB:

- (id)initWithCoder:(NSCoder *)coder {
    self = [super initWithCoder:coder];    
    if (self) {
        <YOUR INSTRUCTIONS>
    }
    return self;
}

- (void)awakeFromNib {
    <ADDITIONAL INSTRUCTIONS AFTER NIB IS LOADED>
}

UIViewController is created programmatically:

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        <YOUR INSTRUCTIONS>
    }
    return self;
}