Appending NSDictionary to other NSDictionary

后端 未结 3 672
有刺的猬
有刺的猬 2021-01-31 00:45

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 a

3条回答
  •  独厮守ぢ
    2021-01-31 01:37

    Use NSMutableDictionary addEntriesFromDictionary to add the two dictionaries to a new mutable dictionary. You can then create an NSDictionary from the mutable one, but it's not usually necessary to have a dictionary non-mutable.

提交回复
热议问题