Hello,
In my latest project I'm using an NSMutableArray, but when I try to replace an object the app crashes (TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION).
Code:
- (void)ThisFunctionReplacesAnObject {
[nameOfMyArray replaceObjectAtIndex:0 with Object: @"newObject.png"];
}
The NSMutableArray is declared in the .h file and released in .m (dealloc method).
What am I doing wrong here?
Thanks in advance