View Full Version : What´s the diffrence between UIView and .xib files?
alexandergre
Jul 28, 2009, 09:21 PM
xib file must have .h .m classes.
but I really dont know when to use UIview or xib files? what is the diffrence betweenn them?
Fontano
Jul 28, 2009, 10:48 PM
xib file must have .h .m classes.
but I really dont know when to use UIview or xib files? what is the diffrence betweenn them?
They are not really comparable.
UIView is the programming object, that contains all the methods and properties the application communicates with display a view.
An XIB is a graphic representation and holder file, that contains the definition for the graphical look of the application (in one context).
An XIB really can't exist without a UIView to communicate with it.
A UIView can exist without an XIB as all the objects can be done via code.
This is an extremely simplistic comparison to answer your question.
I am sure others will pipe in with more information.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.