[MonoTouch] Some basic example apps that don't use Interface uilder.

Chris Branson chris.branson at insphire.com
Tue Oct 4 04:02:18 EDT 2011


You don't have to have any .xib files in an MT project at all. You can instantiate a windows object yourself in the AppDelegate FinishedLaunching and then hang your view controllers & views off of that.

Quick example: https://gist.github.com/1261104 (create a new "Empty MonoTouch Project" and add this main.cs)

Having said that, particularly with Universal apps, I usually make use of the default xib that gets created when you start a new solution and then build out from there using code only and MonoTouch.Dialog.

Cheers,

Chris 

On Monday, 3 October 2011 at 21:00, Nic Wise wrote:

> you will always have a mainwindow.xib - thats how it works. you dont
> have to DO anything with it tho!! (it's the window object, I think, in
> main.cs, which you add all your other stuff into)
> 
> 
> 
> On Mon, Oct 3, 2011 at 20:18, Oivvio Polite <mylists at polite.se (mailto:mylists at polite.se)> wrote:
> > On Mon, Oct 03, 2011 at 04:46:49PM +0200, Guido Van Hoecke wrote:
> > > Hi Jeff,
> > > 
> > > > Most of the samples in http://github.com/mono/monotouch-samples don't use
> > > 
> > > The current link is http://github.com/xamarin/monotouch-samples
> > 
> > I cloned it and every subfolder seems to contain at least one xib-file.
> > Are those just left-overs from the monodevelop solution-setup? How do I
> > tell which ones are actually being used?
> > 
> > oivvio
> > 
> > --
> > http://liberationtech.net
> > _______________________________________________
> > MonoTouch mailing list
> > MonoTouch at lists.ximian.com (mailto:MonoTouch at lists.ximian.com)
> > http://lists.ximian.com/mailman/listinfo/monotouch
> 
> 
> 
> -- 
> Nic Wise
> t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
> b. http://www.fastchicken.co.nz/
> 
> mobileAgent (for FreeAgent): get your accounts in your pocket.
> http://goo.gl/IuBU
> Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
> London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com (mailto:MonoTouch at lists.ximian.com)
> http://lists.ximian.com/mailman/listinfo/monotouch

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111004/bdc1fe80/attachment.html 


More information about the MonoTouch mailing list