Re: UITableView lazy instantiation question
Re: UITableView lazy instantiation question
- Subject: Re: UITableView lazy instantiation question
- From: Luke Hiesterman <email@hidden>
- Date: Fri, 23 Mar 2012 08:42:07 -0700
The table view is created in UITableViewController's implementation of loadView. If the table view controller was instantiated via -initWithNibName:bundled: it will load the table view from the nib. Otherwise it will load it with alloc/init. If you were overriding loadView and not calling super, you would not get a table view.
Luke
On Mar 23, 2012, at 8:38 AM, Alex Zavatone wrote:
>
> On Mar 23, 2012, at 11:24 AM, Luke Hiesterman wrote:
>
>> If you use a UITableViewController, the controller automatically creates a UITableView instance and sets it to self.view.
>
> Do you know when this gets assigned?
>
> Yeah, that's what I did, but I never got a table view until I added those lines.
>
> @interface LocationSpecificsTableViewController : UITableViewController {
>
> - Alex Zavatone
>
>
>
_______________________________________________
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