0
- (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?

Adil Soomro
  • 37,609
  • 9
  • 103
  • 153
vishnu
  • 13
  • 2
  • possibly duplicate [when should i initialize a view controller using initwithnibname](http://stackoverflow.com/questions/2224077/when-should-i-initialize-a-view-controller-using-initwithnibname) – Ankur Mar 26 '13 at 09:53

1 Answers1

0

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.

d00dle
  • 1,276
  • 1
  • 20
  • 33