gpt4 book ai didi

iphone - NSMutableDictionary 的 JSONRepresentation

转载 作者:行者123 更新时间:2023-12-03 19:34:58 26 4
gpt4 key购买 nike

我想在 NSMutableDictionary 对象上调用 JSONRepresentation 方法。我使用 [userDict JSONRepresentation]; 调用它,但收到以下警告:

NSMutableDictionary may not responsd to '-JSONRepresentation'

谁能告诉我如何在 NSMutableDictionary 类型的对象上正确调用 JSONRepresentation 方法?

提前致谢。

最佳答案

JSONRepresentation 方法来自 json-framework 。将该框架包含在您的项目中并导入正确的 header ,您就可以开始了。

关于iphone - NSMutableDictionary 的 JSONRepresentation,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7143863/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com