iphone - NSFetchedResultsController: should I always check fetchedObjects==nil before calling -performFetch? -
I am using NSFetchedResultsController for my table view. I call theFrfrech within the view-deedload method of my controller I do
Occasionally my controller is flipped and reloads, resulting in other calls -viewDidLoad and -performFetch. I found out that this was causing an error: "NSFetchedResultsController error: section '(empty)' not found in the controller '. I found out that calling -formft was causing problems like this many times, and my -viewDidLoad Modified: Method to do the following:
if (fetchedResCtrlr.fetchedObjects == zero) {NSError * error; if (! [FetchedResCtrlr: & amp; error]). .}
Being new to core data, I'm thinking that to take this right action Should I be able to actually call - ParformFetch: Once more without error? Normally, should I do something -DownloadDownload:?
Thank you!
NSFetchedResultsController
in -viewDidUnload:
There is no need to do anything with it.In addition, checking for a zero against -phid object
is not normally worth it. Other flow issues are calling: -performFetch:
will damage the performance on itself without more than one other ill effects only.
Comments
Post a Comment