开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜