Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Ok, so I've just found out that method isn't required. Thanks to you both again, it's appreciated. I was working off the Apple UITableViewController template which has it in there... I've removed it now.

Anyhow, I still have a remaining issue. I need to push the selected items object across to the next view. Before, I simply used:

Code:
My_Class *listItem = [listItems objectAtIndex:[indexPath indexAtPosition:1]];

That worked fine in a 'section-less' table, selecting the correct listItem instance from the listItems array just fine.

However, now it has sections indexAtPosition:1 restarts itself counting from 0 for each new section - right? So that leaves things broken and I'm not sure how to fix it.
 
That worked fine in a 'section-less' table, selecting the correct listItem instance from the listItems array just fine.

However, now it has sections indexAtPosition:1 restarts itself counting from 0 for each new section - right? So that leaves things broken and I'm not sure how to fix it.
So, you're still using listItems to pull the data for all the rows in the table? What happened to alphabetArray?

EDIT: If you had alphabetArray set up like I explained above, you could get the item using:
Code:
My_Class *listItem =[[alphabetArray objectAtIndex:indexPath.section] objectAtIndex:indexPath.row];
 
So, you're still using listItems to pull the data for all the rows in the table? What happened to alphabetArray?
I'm using alphabetArray to populate the cells like so:

Code:
if (cell == nil) {
				cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero] autorelease];
				cell.text = [[alphabetArray objectAtIndex:indexPath.section] objectAtIndex:indexPath.row];
			}
			return cell;

That's working great. However, I can't use alphabetArray for didSelectRowAtIndexPath because I want to push an instance of My_Class to the next view. There's an array called listItems which holds these instances... alphabetArray, on the other hands, just holds the strings of the alphabet and another array with strings of listItem names.

Hope that makes sense.

Edit: Scrap that, it's all working now. I was adding the listItem.name to "listItems", when I should have been adding the object! Thanks to everyone for your help it's really appreciated :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.