ios - Why are FetchedResultsController delegate methods not being called for deleted records? -


just wondering if else has found deletes synchronised via icloud not triggering fetchedresultscontroller delegate methods called on device importing transaction logs?

the transaction logs imported because nspersistentstoredidimportubiquitouscontentchangesnotification notification fetchedresultscontroller methods don't called.

inserted or updated records transaction imports results in delegate methods being correctly called.

calling performfetch correctly updates result set calling reloaddata on uitableview sufficient ui updated correctly.

this works if call save on context after merging changes - never had before.

[self.managedobjectcontext mergechangesfromcontextdidsavenotification:notification];  nserror *error; if ([self.managedobjectcontext haschanges]) {     [self.managedobjectcontext save:&error]; } 

any idea why deletes not triggering fetchedresultscontroller delegate methods ? seems new issue suddenly. pretty sure never had issue - perhaps else confirm behaviour 1 of sample apps here.

edit seems checking [moc haschanges] return no calling [moc save] still causes fetchedresultscontroller call delegate methods.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -