从Core Data,iOS获取最后插入的项目 [英] Get last inserted item from Core Data, iOS

查看:116
本文介绍了从Core Data,iOS获取最后插入的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有办法在核心数据数据库中获取最后一个插入的项目?

is there a way to get the last inserted item in a core data database?

推荐答案

对象。


setFetchLimit:1 and setFetchOffset:[number of all entries - 1]

setFetchLimit:1 and setFetchOffset:[number of all entries - 1]

这篇关于从Core Data,iOS获取最后插入的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆