Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
堆栈家伙。最近我用restkit处理net请求,但是如果我想添加一些源表示中不存在的键值对,(例如“userid”,用于用户切换),我必须添加这个在成功块中,这很无聊。那么,有什么方便的方法可以解决这个问题吗?
您最好的选择可能是覆盖willSave托管对象子类中的方法,如果未设置 id,则创建并设置它。这将在映射过程中更新对象(并且比编辑 JSON 容易得多)。
willSave