UITableView in a View controller by a UIViewController and not a UITableView

Posted by dirrigc on Stack Overflow See other posts from Stack Overflow or by dirrigc
Published on 2010-06-14T05:29:17Z Indexed on 2010/06/14 5:32 UTC
Read the original article Hit count: 725

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

© Stack Overflow or respective owner

Related posts about uitableview

Related posts about uiviewcontroller