Wednesday, February 02, 2011

UITableView How-To: Part 3 - Multiple Sections

This post has been moved: click here

9 comments:

Rahul S. Khorjekar said...

Link to download project is not working!

Brian Slick said...

Sorry! Fixed.

Anonymous said...

I wrote your code as you described but I get a crash at NSString *key = [[self sectionKeys] object at Index:section];
I get Tread 1: Stopped at breakpoint 4

This is in the numberOfRowsInSection


Also do you have a tutorial on the next part of this in which when you choose a cell it takes you to the desired xib

Brian Slick said...

You have made a mistake somewhere. Don't know what else to tell you.

Anonymous said...

Sorry if I left this post already but I don't see it.

You were correct I made a mistake. Thanks for the help.

Do you know where I could find out about creating a subtitle cell this way so it has a picture and detailtext?

Also again do you have a tutorial on how to load the views from the chosen cell in the grouped tableview you have here?

Brian Slick said...

You can change the style parameter of the cell, or continue on to Parts 4 and 5 here.

Anonymous said...

I've changed the style from default to Subtitle and I have written the various arrays for images and details in a plain tableview but I'm not sure how to write the NSDictionary arrays for the grouped tableview. Could you give me an example for the images and the detail textlabel? or point me in the correct direction?

Thanks Gary

Brian Slick said...

It's the same thing as what is here, just with a detailTextLabel property, and an imageView property. See the UITableViewCell documentation.

Anonymous said...

Nice tutorial, helped me out. Thanks!