• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UITableView lazy instantiation question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: UITableView lazy instantiation question
      • From: Alex Zavatone <email@hidden>
References: 
 >UITableView lazy instantiation question (From: Alex Zavatone <email@hidden>)
 >Re: UITableView lazy instantiation question (From: Luke Hiesterman <email@hidden>)
 >Re: UITableView lazy instantiation question (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: UITableView lazy instantiation question
  • Next by Date: Re: asynchronous nsurlconnection in nsoperation
  • Previous by thread: Re: UITableView lazy instantiation question
  • Next by thread: Re: UITableView lazy instantiation question
  • Index(es):
    • Date
    • Thread