对象类型“id”的属性
我敢打赌这是一个非常基本的问题,但我不明白!
我加载一些 REST 数据并将其放入 NSMutableArray 中的对象中。
- 加载 REST-Data
- 将 Rest-Data 解析为对象
- 将对象添加到 NSMutable 数组
现在我需要访问存储在可变数组中的对象的一些属性,并且我收到 Xcode 错误,指出在中没有给定名称的属性“id”类型的对象。
有人可以给我一个快速提示吗?我想我可以直接使用 NSMutable 数组中的对象及其属性。
感谢您的帮助!
I would bet this is a very basic question, but i don't get it!
I load some REST Data and put it in Objects in a NSMutableArray.
- Load REST-Data
- Parsing the Rest-Data to Objects
- Add the Objects to a NSMutable Array
now i need to access some properties of the objects stored in the mutable array and i get Xcode errors, stating that there is no property with the given name in object of type "id".
Could somebody give me a quick hint? I thought i could use the Objects and their properties within the NSMutable Array directly.
Thanks for your help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能需要转换可变数组中的对象,而不是使用点表示法。如在
You probably need to cast the objects in your mutable array, and not use the dot notation. As in