Hi this is my first question. I am very new to Objective C or more so on XCode. So I was making an app but I found that I could not find any init methods in my project of my default ViewController template. There was only a viewDidLoad.
I was wondering if I am supposed to make one? Or is there one I'm supposed to use? Also if I do make one how I'm supposed to make it run go through the init method? I tried one but it doesn't call the method at all when I run the app.
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
NSLog(@"Init Called");
}
return self;
}
Why isn't the above code being called?