How to save NSMutablearray in NSUserDefaults

前端 未结 9 1129
盖世英雄少女心
盖世英雄少女心 2020-11-29 17:50

I have two NSMutableArray\'s. They consist of images or text. The arrays are displayed via a UITableView. When I kill the app the data within the <

9条回答
  •  有刺的猬
    2020-11-29 18:17

    If you need to add strings to the NSMutableArray in ant specific order, or if you are using the NSMutableArray for a UITableView you may want to use this instead:

    [NSMutableArray insertObject:string atIndex:0];
    

提交回复
热议问题