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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Change the uitableview footer height in landscape mode franium iPhone/iPad Programming 2 Jan 14, 2011 02:04 PM
iPhone change uitableview grouped style background texture's color isparkdev iPhone/iPad Programming 2 Jun 1, 2009 05:09 AM
UITableView grouped style custom section headers North Bronson iPhone/iPad Programming 8 Apr 25, 2009 10:54 AM
UITableView Grouped Style Question Pulkit iPhone/iPad Programming 3 Aug 29, 2008 01:01 AM
UITableView SMS Style Bubbles DSchwartz88 iPhone/iPad Programming 5 Jul 23, 2008 02:49 PM


All times are GMT -5. The time now is 02:16 PM.

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

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