UITableView in a View controller by a UIViewController and not a UITableView
- by dirrigc
Hi all,
I have a View with lots of things inside it including buttons, a scroll view and a tableView (ipad app). I am controller this view with a viewController subclass but I don't know how to manage my tableView. I don't know where put the methods :
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
should i add them to my ViewController or should i create a new subclass of UITableViewController (and get them "for free") and set the dataSource and delegate of my tableView to that class when I create it programmatically?
I am storing the data I want to show in my appDelegate following the tutorial :
http://www.iphonesdkarticles.com/2008/10/sqlite-tutorial-selecting-data.html
I am new at developing and I fear I am spagetti coding.
Thanks a lot