NSMutableArray - Add array at start

后端 未结 5 1574
逝去的感伤
逝去的感伤 2021-02-05 12:47

It is a simple pull to refresh case. I have data loaded into table and have a mutable data array at back-end, I receive a array of new data and want to add this complete array a

5条回答
  •  南笙
    南笙 (楼主)
    2021-02-05 13:45

    NSMutableArray offers the insertObjects:atIndexes: method, but it's easier to append the way you suggest using addObjectsFromArray:.

提交回复
热议问题