将NSDictionary附加到其他NSDictionary [英] Appending NSDictionary to other NSDictionary

查看:154
本文介绍了将NSDictionary附加到其他NSDictionary的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 NSDictionary ,它加载 UITableView 。如果用户滚动越来越多,我会调用API并提取新数据。此数据再次采用 NSDictionary 的形式。是否可以将新的 NSDictionary 添加到现有的?

I have one NSDictionary and it loads up UITableView. If a user scrolls more and more, I call API and pull new data. This data is again in the form of an NSDictionary. Is it possible to add the new NSDictionary to the existing one?

推荐答案

你在寻找这个人:

[NSMutableDictionary addEntriesFromDictionary:]

确保您的 UITableView 字典是 NSMutableDictionary

在此处查看

这篇关于将NSDictionary附加到其他NSDictionary的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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