ez9p0q
Last Updated: February 25, 2016
·
7.594K
· mdobson
E042fe6b36628f262ad2d27e8f21addf

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;
}
Say Thanks
Respond