Let's discuss some differences between the interface builders like Xib and storyboard.
What is .xib in iOS ?
What is a storyboard ?
Storyboard is used as a visual representation of the user interface in Xcode editor.It contains some connected screens or sequence of scenes that represents view controllers and it's views.
Some important points About View Controller.
What Are The Main Responsibilities Of A View Controller ?
Some important notes about View in iPhone.
-Xib files are used with a single UIView.
-It's very difficult to implement complex auto-layouts in xib.
-It's utilizes more memory as compared to storyboard and quiet slow.
-It is compatible from iOS5 and onwards
-You can do localizations for different languages and countries using different XIBs .
-It's difficult to use same Xib to support multiple devices.
-xibs are reusable interface builders for developers.
-Xibs are the older way to design user interface for iOS Apps.
-Xibs are much preferred for creating pop up windows, modal views etc.
- You can include Xib files in multiple scenes in storyboard but you cannot include a storyboard in xib.
-You can layout all your Scenes like View Controllers, Nav Controllers, TabBar Controllers, etc in a single storyboard.
-You can use Auto Layout easily that defines mathematical relationships between elements defining their position and sizing.
-Usually fast and allocates less memory.
-It's not compatible prior to iOS 5 .
-"Dynamic" and "Prototype" cells can be used easily.
-Storyboards best to use for the apps with a small to medium amount of screens.
-It's very difficult to work in parallel in a team environment because storyboard is a common files which is modified by multiple users at the same time.
-You can specify View Controller navigation and transitions using segue objects.
-It's best to use storyboard for the app that supports multiple devices.
-It's not easy to copy views from other apps to a storyboard.
-With storboard,It's painful for multiple developers to work on the same project by using git repository.
-Storyboard is highly recommended by apple.
Top 10 Characteristics to become a good developer