Quote:
Originally Posted by iphonegamedeveloper
What is difference between interface builder and programmatic declaration?Which one is preferred?
Thanks
|
In one case you work with pretty pictures and drag and drop. In the other you extend one of the UIView classes and code everything yourself, including positions, fonts, stretchability, background colors, etc.
Which is preferred is a personal choice. I saw a study out there testing performance and they should that both in certain situations were faster, so you can't blanket say one is faster than the other at runtime.
Some people hate IB. Some love it. Some views are really simple that IB is faster to create in than code. Some say no matter what they prefer programming everything, it gives them a lot more control, but they have to write more code, which could be error-prone. I just have this saying that adding one more line of code is one more place I can make a coding mistake.
Good Luck
Mark