jjzjj

jobsArrayFromAFNetworking

全部标签

ios - 尝试对 UITableView 中的单元格重新排序时获取 '-[__NSCFArray removeObjectAtIndex:]: mutating method sent to immutable object'

我正在使用AFNetworking获取UITableView单元格中的JSON数据。我已将数组声明为NSMutableArray,但我仍然收到-[__NSCFArrayremoveObjectAtIndex:]:mutatingmethodsenttoimmutableobject错误,每当我试图重新排序单元格。这是我用于重新排序的逻辑--(void)tableView:(UITableView*)tableViewmoveRowAtIndexPath:(NSIndexPath*)fromIndexPathtoIndexPath:(NSIndexPath*)toIndexPath{NS