ios - almost there with updating Core Data
- by Jeff Kranenburg
I have been following the answer of this question: How to update existing object in core data?
and in the answer it comes across this line of code to update a record within the array:
Favorits* favoritsGrabbed = [results objectAtIndex:0];
Now this updates whatever is set a record 0 of the database, no matter what cell I select to edit.
I am sorry but I cannot figure out how to change it into updating the cell I have selected.
Starting to grow grey hairs here:-)
The problem (maybe it is my mindset) is that I am required to give an integer and I am unable to find something to substitute it.
Any help would be great.