NSMutableArray removeObjectAtIndex: throws invalid argument exception

前端 未结 3 802
不知归路
不知归路 2021-01-18 05:41

I\'m writing an application to show some news from a portal. The news are fetched using a JSON file from the Internet and then stored into a NSMutableArray using the CoreDat

3条回答
  •  礼貌的吻别
    2021-01-18 06:15

    Verify that dataSet is an NSMutableArray. The exception is getting thrown because it doesn't respond to removeObjectAtIndex.

提交回复
热议问题