The .xib file extension is most commonly associated with Interface Builder files. Interface Builder is a graphics editing software that is used to design and test the user interfaces of a variety of software products. The files with the .xib file extension contain development time format files. These files contain the interface files created with the Interface Builder software. - See more at: http://huntmyideas.weebly.com/blog/top-ios-interview-questions-and-answers-for-beginners#sthash.Ge6hIys4.dpuf
The .xib file extension is most commonly associated with Interface Builder files. Interface Builder is a graphics editing software that is used to design and test the user interfaces of a variety of software products. The files with the .xib file extension contain development time format files. These files contain the interface files created with the Interface Builder software.
|
A XIB is not a package - it is a single self-contained XML file. The XML schema is specific to XIBs - it is not a simple XML Property List.
From the point of view of the UI designer, XIB files contain the views or windows that you design in Interface Builder — the controls, their layout and properties, and their connections to your code.
It is important to understand that on a technical level, XIB files are stored object graphs. That means that an XIB file, essentially, is a hierarchical set of objects descriptions. When an XIB file gets loaded at runtime, all the objects defined in the XIB file get instantiated, configured, and connected as described in the XIB.
These objects can be a combination of standard framework classes (such as UIView,UIButton, etc), classes from third party libraries, or even classes defined in your own application code. When the Cocoa runtime loads an XIB, it goes through the list one by one, looks for the classes with the appropriate names and news up the necessary objects.
Each XIB file also knows about a special object called the "File's Owner". This object will not be created when the XIB is loaded. Rather, the object that initiated the loading of the XIB file will take the place of the File's Owner within the XIB's object graph — including any connections and references to it. We will see how that is useful and important soon.
From the point of view of the UI designer, XIB files contain the views or windows that you design in Interface Builder — the controls, their layout and properties, and their connections to your code.
It is important to understand that on a technical level, XIB files are stored object graphs. That means that an XIB file, essentially, is a hierarchical set of objects descriptions. When an XIB file gets loaded at runtime, all the objects defined in the XIB file get instantiated, configured, and connected as described in the XIB.
These objects can be a combination of standard framework classes (such as UIView,UIButton, etc), classes from third party libraries, or even classes defined in your own application code. When the Cocoa runtime loads an XIB, it goes through the list one by one, looks for the classes with the appropriate names and news up the necessary objects.
Each XIB file also knows about a special object called the "File's Owner". This object will not be created when the XIB is loaded. Rather, the object that initiated the loading of the XIB file will take the place of the File's Owner within the XIB's object graph — including any connections and references to it. We will see how that is useful and important soon.
No comments:
Post a Comment