- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
Why we use this method? Is it necessary when using xib file?
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
Why we use this method? Is it necessary when using xib file?
Why we use init with nib ?
So we can take a view created with interface builder and initialize a view from that instead of coding everything yourself.
it is a good alternative to coding everything if you just need basic things.