ViewController init?
Posted
by fuzzygoat
on Stack Overflow
See other posts from Stack Overflow
or by fuzzygoat
Published on 2010-03-26T17:41:40Z
Indexed on
2010/03/26
17:43 UTC
Read the original article
Hit count: 384
I have just noticed that my ViewController does not call init (See below) when it starts up.
-(id)init {
self = [super init];
if(self) {
NSLog(@"_init: %@", [self class]);
otherStuff...
}
return self;
}
Is there a reason for this, or is it replaced by viewDidLoad
-(void)viewDidLoad {
otherStuff ..
[super viewDidLoad];
}
cheers gary
© Stack Overflow or respective owner