When should I check the box "Also create XIB file" in Xcode?

I am new to iOS development, and almost all the tutorials that I have read DO NOT run the check box "Also create an XIB file."

I read the Apple documentation about the XIB file and realized what the XIB file does, but I still don't know when I should check the box, and when I shouldn't.

+5
source share
1 answer

All about preference. Old tutorials (before the storyboards were introduced) will tell you about using XIB files, however the storyboard can be used as a complete replacement for XIB.

If you prefer to use XIB, you can stick with them. The storyboard is just like the XIB group on the same page, which eliminates the number of files that you will have in your project.

Using storyboards will change some of the methods you need to use in the View Controller class, for example

-(id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil 
+4
source

All Articles