Re: iPad Programming Tutorial
Re: iPad Programming Tutorial
- Subject: Re: iPad Programming Tutorial
- From: Rick Mann <email@hidden>
- Date: Sun, 25 Apr 2010 22:51:44 -0700
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 (email@hidden)
>
> 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:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden