I can't stress enough how much better it is to use IB. Having said that, a view created entirely programmatically is done in -loadView. You must implement that in your view controller subclass.
If you do load a NIB but want to create additional views, do that in viewDidLoad. -- Rick On Apr 25, 2010, at 19:01:49, ML wrote: > Hi All, > > Does anyone know of a resource that helps understand how to NOT use interface > builder for developing applications? > > I am trying to create a iPad SplitView application and I dont quite > understand if I want to put code to create additional interface elements in: > - (void)configureView or - (void)viewDidLoad > > Say I wanted to add a UITextView and display it. > > Wouldn't I do something like: > > CGRect bounds = [[UIScreen mainScreen] applicationFrame]; > > UITextView *theTextView = [[UITextView alloc] initWithFrame:bounds]; > [theTextView setContentView:theTextView]; > [theTextView makeKeyAndOrderFront:nil]; > [theTextView makeFirstResponder:theTextView]; > > [theTextView show]; > > But I dont know if it displays, I was thinking that maybe this is something > to do with that fact the project uses Interface Builder and I dont want to. > > -ML > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/rmann%40latencyzero.com > > This email sent to rm...@latencyzero.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com