PDA

View Full Version : Advantage of having multiple xib files?




detz
Aug 28, 2008, 09:39 AM
Is there a reason you would want a new one for each view?



kainjow
Aug 28, 2008, 12:15 PM
Usually you use multiple nibs so that they're only loaded on demand, to reduce memory usage. It's also good management and it forces you to use better designs.

sapplesystems
Dec 10, 2009, 12:50 AM
Usually you use multiple nibs so that they're only loaded on demand, to reduce memory usage. It's also good management and it forces you to use better designs.

Hi All,

I am new to Iphone programming. So please don't mind if I ask some basic questions. :mad:

I want to develop an application where the landing screen will be a login screen and after login application should display a new screen with the list of available categories. And on selecting any category a new screen should appear with the information related to the selected category.

Basically I want to display different screens in the applications and my confusion is how can I make different screens with one .xib file? or should I use different .xib files for each screen. If I use different .xib files for each screen then how should I navigate to different screens.

Please help in solving this confusion.


Thanks in advance

Gaurav

dejo
Dec 10, 2009, 10:02 AM
Make sure you're read through the View Controller Programming Guide for iPhone OS (http://developer.apple.com/iphone/library/featuredarticles/ViewControllerPGforiPhoneOS/Introduction/Introduction.html).