开发者

NsMutable Array problem

开发者 https://www.devze.com 2023-02-15 13:38 出处:网络
when i remove object from nsmutable array it shows exception but some time it works [Array removeObjectAtIndex:row];

when i remove object from nsmutable array it shows exception but some time it works

[Array removeObjectAtIndex:row];

i have use this code

Terminating app due to uncaught exception 'NSInternalInconsistencyException',开发者_开发技巧 reason: '-[__NSCFArray removeObjectAtIndex:]: mutating method sent to immutable object'


Array is type of NSarray ... it is object of NSArray it should be object of NSMutableArray and not NSArray

0

精彩评论

暂无评论...
验证码 换一张
取 消