Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 9, 2009, 05:57 PM   #1
XcodeNewb
macrumors member
 
Join Date: Feb 2009
UITableView Grouped Style

I am having an issue with using a Grouped Style UITableView. I have 2 sections in my table with a variable number of rows in each section. The problem is that when a row in the first section rolls off of the screen and then is rolled back on the screen the data in the row is replaced with the data in the same row number of the 2nd section of the table.

The row data is obviously coming from the cellForRowAtIndexPath method. I have the row number in that method but I cannot figure out how to get the table section number. Is that possible? Or is there another way to do this? When the cell redraws it thinks it is in the second section of the table. That is causing the problem.

Thanks
XcodeNewb is offline   0 Reply With Quote
Old Mar 9, 2009, 07:23 PM   #2
dejo
Moderator
 
dejo's Avatar
 
Join Date: Sep 2004
Location: The Centennial State
indexPath contains a section and a row.
dejo is offline   0 Reply With Quote
Old Mar 10, 2009, 01:49 PM   #3
XcodeNewb
Thread Starter
macrumors member
 
Join Date: Feb 2009
Thank you such much for the reply. How did I ever overlook that?
XcodeNewb is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Emails aren't grouped together in Mail bluewomble88 iOS 7 3 Oct 6, 2013 10:10 AM
iMessage: how do I view messages grouped by person? opnancy iOS 7 34 Sep 22, 2013 01:04 PM
Resolved: Strange behavior with grouped UITableView straber iPhone/iPad Programming 2 Oct 4, 2012 07:33 PM
Problem with showing Grouped Data in UITableView Narendar Singh iPhone/iPad Programming 8 Jul 18, 2012 04:36 AM
How to create Grouped table Narendar Singh iPhone/iPad Programming 3 Jul 2, 2012 02:23 AM

Forum Jump

All times are GMT -5. The time now is 04:10 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC