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
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ios
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#