iPhone: tab-based application, 1st view with tableview?
iPhone: tab-based application, 1st view with tableview?
- Subject: iPhone: tab-based application, 1st view with tableview?
- From: "Eric E. Dolecki" <email@hidden>
- Date: Wed, 6 Jan 2010 09:37:49 -0500
Noob alert. I created a project based on tabbar. The firstViewController I
placed a UITableView (in IB). No problems. However I want to hook that
tableview up so that numberOfRowsInSection, etc. get fired.
In MainWindow.xib I connected the table view with the "Selected First View
Controller". I set the datasource and delegate to the same (right-click on
the tableview and drag to the Selected First View Controller in the
MainWindow.xib window).
Outlets
---------
dataSource Selected FIrst View Controller
delegate Selected First View Controller
Referencing Outlets
------------------------
songsTable Selected First View Controller
In my FirstViewController.m I have:
- (NSInteger)tableView:(UITableView *)tableView
numberOfRowsInSection:(NSInteger)section {
NSLog(@"numberRows called" );
return 1;
}
This method never gets called, leading me to know things aren't wired
correctly. I must be missing something simple.??
_______________________________________________
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