iPhone: Same Rows Repeated in Each Section of Grouped UITableview
Posted
by Rank Beginner
on Stack Overflow
See other posts from Stack Overflow
or by Rank Beginner
Published on 2010-03-23T13:39:13Z
Indexed on
2010/03/24
16:53 UTC
Read the original article
Hit count: 190
I have an app that is a list of tasks, like a to do list. The user configures the tasks and that goes to the SQLite db. The list is displayed in a tableview.
The SQL table in question consists of a taskid int, groupname varchar, taskname varchar, lastcompleted datetime, nextdue datetime, weighting integer.
I currently have it working by creating an array from each column in the SQL table. In the tableView:cellForRowAtIndexPath:
method, I create the controls for each task by binding their values to the array for each column.
I want to add configurable task groups that should display as the section titles. I got the task groups to display as the section headers. My problem is that all the task rows are repeated in each group under each header.
How do I get the correct rows to show up only under the correct section?
I'm really new to development period and took on a hobby of trying to teach myself how to develop iphone apps. So, pretty please, be a little more detailed than you normally would with a professional developer. :)
© Stack Overflow or respective owner