UITableView reordering core data results
my UITableView is reordering the results after you navigate away and them come back to the view. it only does it one tim开发者_开发百科e though - if you navigate away and then come back a second time the new order doesn't change.
does anyone know what could be causing this?
thanks for any help.
i fixed this issue by putting this code in my viewWillAppear:
method.
if (self.resultsController != nil) {
return;
}
I'm not sure why it worked. I noticed that it was missing when i compared it to other code I had.
精彩评论