Re: IB misses outlets for UITableViewController subclass [solved]
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