Last Updated: December 26, 2018
·
9.381K
· 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;
}

Written by Matthew Dobson

Recommend
Say Thanks
Update Notifications Off
Respond