Hi guys, this is gonna be one heck of a complicated question coming your way. I might get sued by Apple for messing the UI experience 
But I gotto know this!.
I have a touchcells tableview. I'm sure your aware of what it is!. I have 2 mutable arrays. One holds the data from sql, the other holds the touched cell objects.
Flow of objects is this way,
SQLTable-->MutablearrayA-->TableView (On Cell Touch)-->MutableArrayB.
On touching the particular cell, the object present is "checked" and Added to another arrayB.
Heres the tricky and maybe the no-so-required. My table holds allot of cells. Around 500! So, the user has an option to "Sort List". Think of re arranging the table at runtime.
Now, MutableArrayA removes all objects, gets a new list from SQL which is loaded.
In some cases, the same objects are loaded in the new cell as well.. which is fine, BUT if that object had been checked (selected) prior to re-"sorting" the table, the same object is NOT checked.
I need to figure out a way to Keep the UITableViewCELL checked(selected) even if reloaded!, The only way to know that the cell had been checked before is by comparing it to the second ArrayB that contains the checked objects.
The ObjectClass is similar to whats there in the SQLiteBooks example (book.h)
What should I do here is the question!, i'm missing a direction here
thanks for your answers
But I gotto know this!.
I have a touchcells tableview. I'm sure your aware of what it is!. I have 2 mutable arrays. One holds the data from sql, the other holds the touched cell objects.
Flow of objects is this way,
SQLTable-->MutablearrayA-->TableView (On Cell Touch)-->MutableArrayB.
On touching the particular cell, the object present is "checked" and Added to another arrayB.
Heres the tricky and maybe the no-so-required. My table holds allot of cells. Around 500! So, the user has an option to "Sort List". Think of re arranging the table at runtime.
Now, MutableArrayA removes all objects, gets a new list from SQL which is loaded.
In some cases, the same objects are loaded in the new cell as well.. which is fine, BUT if that object had been checked (selected) prior to re-"sorting" the table, the same object is NOT checked.
I need to figure out a way to Keep the UITableViewCELL checked(selected) even if reloaded!, The only way to know that the cell had been checked before is by comparing it to the second ArrayB that contains the checked objects.
The ObjectClass is similar to whats there in the SQLiteBooks example (book.h)
What should I do here is the question!, i'm missing a direction here
thanks for your answers