0

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'

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

1 Comment

i did not use object of nsArray am just amazed why it is give this exception some times it works fine

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.