It is not wrong, in fact, it is the best way to do it.

The key is to load the controllers/xibs when you need them.

The xibs that will be loaded when you do not need them, are the ones that are 
referenced in other xibs and you have connected them with outlets to their 
parent controller/xib.

Dimitris Tavlikos
Software Developer
Email: [email protected]
Twitter: @dtavlikos
Blog: http://software.tavlikos.com





On Jun 3, 2011, at 5:41 PM, Karl Heinz Brehme Arredondo wrote:

> I have actually 18 XIBs + 1 MainWindow.xib. They are like 18 forms in Windows 
> Mobile application.
> 
> But on iOS, the MainWindow.xib load just Login XIB. After login the Home Xib 
> is loaded. After that, depending on each user action another xib is loaded as 
> navigation action or popup or "form" popup. With a structure really like 
> Windows.
> 
> The difference than Windows is that the main form is the home form that loads 
> login form before everything. But on iOS it is a bit different, because my 
> MainWindow.xib isn't home nor login, but it load Login.
> 
> All run smoothly, no delay more than 2 seconds apparently to run the 
> application. (On windows mobile 200Mhz it takes really more…).
> 
> Is that wrong?
> 
> Karl
> 
> From: Dimitris Tavlikos <[email protected]>
> Date: Fri, 3 Jun 2011 17:32:18 +0300
> To: Miguel de Icaza <[email protected]>
> Cc: "[email protected]" <[email protected]>
> Subject: Re: [MonoTouch] Time for action
> 
> I agree, this is a matter of design.
> 
> Every time a xib is loaded at runtime, it loads everything it contains. So if 
> you have for example, 10 xibs which are all inside the MainWindow.xib... they 
> will all load at startup.
> 
> (hello Miguel)
> 
> Dimitris Tavlikos
> Software Developer
> Email: [email protected]
> Twitter: @dtavlikos
> Blog: http://software.tavlikos.com
> 
> 
> 
> 
> 
> On Jun 3, 2011, at 5:27 PM, Miguel de Icaza wrote:
> 
>> Hello,
>> App with 32 view controllers takes 5.75 seconds to start up on a 2nd gen
>> iPod touch? So what - make use of your default.png and make the users
>> think it's doing something meaningful.
>> This is a problem in general with interfaces created with Interface Builder, 
>> if you reference the extra screens, you will pay the startup price.
>> Apple recommends that you avoid this, by creating as small as possible XIB 
>> files: one XIB file per view controller.
>> _______________________________________________
>> MonoTouch mailing list
>> [email protected]
>> http://lists.ximian.com/mailman/listinfo/monotouch
> 
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
> 
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch

_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to