What's up with the .NIB -> .XIB?
What’s up with the NIB->XIB change somewhere between XCode 3.0 to 3.1?
Is there any difference with this name change that I should know while I go through tutorials that mention nothing but the .nib file?
- Calling method in current view controller from App Delegate in iOS
- Accessing the current position of UIView during animation
- iOS: Autosizing an UIImage programmatically
- Adding the “Do Not Backup” attribute to a folder hierarchy in iOS 5.0.1
- How to make iAds work on a 3.0 + iPhone-iPad app?
- How to get memory usage in Swift
4 Solutions Collect From Internet About “What's up with the .NIB -> .XIB?”
XIB’s are very cool. they are basically an un-compiled NIB (in XML format if memory serves me)
during the build process they are converted to NIB’s to be deployed in the final product.
As I understand it, xib files are xml nib files. xib files are compiled into nibs when the application is built. The xib format was created because nib files don’t mesh well with version control (because they’re not text), whereas a plain text xml file works well.
The other answers and link explain what XIB files are, but not about the specific change.
The new flat-file .xib format was introduced with Leopard (and Xcode 3.0) in 2007, but I believe that .nib remained the default, primarily for compatibility with older versions of Xcode and OS X. With Xcode 3.1, there was a shift to .xib as the preferred format. However, most documentation hasn’t been updated, probably in part because the distinction is fairly minor from the standpoint of a normal developer.
I definitely echo the sentiment that XIB files are much better than NIB files, especially when using version control. (Flat files are much easier to manage than directory packages in most tools.)
the XIB file (XML Interface Builder) was introduced into Xcode because NIB files (Nxt Interface Builder) weren’t so user/editable friendly. XIB’s are designed in the format of a raw XML document making it a human-readable source code. Although the older bundled NIB files where editable, they were still a tiny bit more complicated than just a simple XIB, They contained multiple files including the XML XIB. Now most NIBs are compiled and are not readable by anything except for your Mac so it can read them. Apple started using compiled NIB files because people could read and understand the code put into other peoples programs :o. Xcode uses the “ibtool” command to compile nibs now.
If you wish to know more about compiled Nibs go to my detailed answer at this post
- One to many webrtc
- Download Xcode simulator directly
- Why is an Array an AnyObject in Swift?
- Xcode 6 crashes on submitting Archive
- How can get ' USDJPY'(currency rates) with pandas and yahoo finance?
- How to highlight text like in the image?
- Could not load the “” image referenced from a nib
- Adding constraints in SDCAlertView
- Controlling an object orbiting a sphere
- Xcode 5: failed to get the task for process
- How to create an NSDictionary with multiple keys?
- CocoaPods podspec lint failure – file not found
- How does an 'annot' CGPDFDictionary 'Rect' translate to objective c Rect
- iPhone 5s Touch ID sensor API
- Launching App Store from App in Swift