Appending NSDictionary to other NSDictionary

slonkar picture slonkar · Feb 13, 2012 · Viewed 53.3k times · Source

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?

Answer

MGA picture MGA · Feb 13, 2012

You looking for this guy:

[NSMutableDictionary addEntriesFromDictionary:]

Make sure your UITableView dictionary is an NSMutableDictionary!

Check it here