An XIB is a XML file. All information related to the UI is written to this file. Typically when you add connections from UIButton
to its IBAction
this is also written into the XML as connection records.
Also, after connecting all IBAction
s to its UI elements if you go to the XIB file and right click on File's Owner you can see that all the IBAction
s have associated elements.
And in the .h file the circles corresponding to the IBAction
declarations fills with black color indicating that the action is now connected to a UI element.
During runtime, all this recorded information in the XML file is parsed and appropriate objects are created.
Hope that helps!