开发者

NsMutable Array problem

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜