[array removeObject:@"Name2"];
The documentation for the NSMutableArrays removeObject: object indicates:
Matchesdefined based on the response of objects to isEqual: message
In other words, this method iterates through the array, comparing objects with @"Name2" . If the object is @"Name2" , it is removed from the array.
source share