IOS Core Data Fetch LAST object from Entity? -


i'm not finding reference "last" i'll ask hope simple need fulfill. have objects in core data entity. not implement sort of "time stamp" on entity not anyway because users travel coast coast suppose stamp in zulu time.

i need retrieve last object added refer attribute's value. know core data stores it's own unique incrementing "key" don't know how reference it. need check see if odometer reading user trying enter less last 1 entered or varies beyond normal bounds check user input error before saving new object , present alertview if so.

i can't @max because user may have made erroneous high entry prior. can deal issue separately once user has determined has made invalid entry somewhere needs addressed , dealt accordingly.

thanks.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -