convert NSArray of NSString(s) to NSArray of NSMutableString(s)
问题 How to do that without having to "scroll" the entire given array with a "for" loop? 回答1: Since nobody seems to agree with my comment that this is a duplicate of Better way to convert NSArray of NSNumbers to array of NSStrings, here's the same answer again: NSArray * arrayOfMutableStrings = [arrayOfStrings valueForKey:@"mutableCopy"]; From the docs: valueForKey: Returns an array containing the results of invoking valueForKey: using key on each of the array's objects. - (id)valueForKey: