• 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: IB misses outlets for UITableViewController subclass [solved]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IB misses outlets for UITableViewController subclass [solved]


  • Subject: Re: IB misses outlets for UITableViewController subclass [solved]
  • From: Fritz Anderson <email@hidden>
  • Date: Mon, 13 Apr 2009 13:10:56 -0500

On 13 Apr 2009, at 12:49 PM, Kevin Cathey wrote:

I do not think that UITableViewController has a "tableView" IBOutlet. For table view subclasses (and other view controller subclasses), you use "view" as the outlet for which you specify the view. The UITableViewController just assumes you are connecting to a table view. There is however, a "tableView" KVC property on UITableViewController, but it is not an "IBOutlet".

The UIView at the top of the XIB contains a UISearchBar and the UITableView. Are you saying that the controller's view outlet must be hooked to the UITableView and not to the enclosing UIView?


I've tried connecting view to the table view. My experiment shows that loading the nib (which at least happens without complaint) causes just the table view, and not the UISearchBar, to appear.

LATER: The solution was to make the controller a plain-old- UIViewController, and have it implement the UITableViewDelegate and UITableViewDataSource protocols. Its view outlet points to the enclosing UIView.

	— F

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >IB misses outlets for UITableViewController subclass (From: Fritz Anderson <email@hidden>)
 >Re: IB misses outlets for UITableViewController subclass (From: Kevin Cathey <email@hidden>)

  • Prev by Date: Re: IB misses outlets for UITableViewController subclass
  • Next by Date: Rename or Duplicate an Xcode project?
  • Previous by thread: Re: IB misses outlets for UITableViewController subclass
  • Next by thread: Rename or Duplicate an Xcode project?
  • Index(es):
    • Date
    • Thread