In Swift 2, I had used the following code:
for (_, value) in self.frc.fetchedObjects!.enumerated() {
if (value.value(forKeyPath: "name_of_field_of_entity_name") as? String == "S") {
...
}
}
Now, using Xcode 8.0 beta (8S128d) and Swift 3, Xcode tell me:
Value of type 'NSFetchRequestResult' has no member 'value'
How can fix this error?
Thank you