How can i add a mutable array in the same like the old one?
I tried this code but it doesn't work:
- (void)didParsingApiBusinesses:(NSMutableArray *)businesses
{
NSZone *zone = [entriesBusinessesArray zone];
entriesBusinessesArray = [businesses mutableCopyWithZone:zone];
}
Two things:
mutableCopyWithZone:
directly; instead callmutableCopy
.So all you need is: