9

I am new to iOS development, and nearly all tutorials I've read said DON'T tick the "Also create XIB file" checkbox.

I've read Apple's documentation about XIB file and understood what XIB file does, but I still don't know when should I tick the checkbox and when shouldn't.

hklel
  • 1,624
  • 23
  • 45
  • 1
    This should help you get a better understanding. Difference XIB and Storyboard http://stackoverflow.com/questions/8436324/what-is-the-difference-between-a-xib-file-and-a-storyboard – MwcsMac Jul 30 '15 at 17:06
  • 1
    @MwcsMac Thanks, it helps – hklel Jul 30 '15 at 17:11

1 Answers1

7

It's all about preference. Older tutorials (before storyboards were introduced) will tell you to use XIB files, however, storyboard can be used as a complete replacement for XIBs.

If you prefer using XIBs, you can choose to stick with them. A storyboard is simply like a bunch of XIBs on the same page, which eliminates the number of files you will have in your project.

Using a storyboard will change some of the methods that you need to use in a View Controller class -- such as

-(id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
ecatalano
  • 687
  • 1
  • 4
  • 17