You can also just get a modified copy of the returned array:
NSMutableArray *array = [[myString componentsSeparatedByString:@"..."] mutableCopy];
Also, remember that a copy, such as alloc, allocates new memory. Therefore, when used in code other than ARC, you must autorelease
copied array or manually release
it when you are done with it.
source share