Last Updated: December 26, 2018
·
9.366K
· mdobson

Use initWithCoder to do custom view controller initialization in iOS

Implement the initWithCoder method to perform custom view controller initialization when your app is run with a storyboard.

- (id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super initWithCoder:aDecoder];
    if (self) {
        NSLog(@"initialization");
    }
    return self;
}