开发者

UITableView reordering core data results

开发者 https://www.devze.com 2023-01-16 12:41 出处:网络
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

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

精彩评论

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