I'm trying this, but it looks like it's not right, are there any options? Thank you
NSMutableArray *copyy = [[NSMutableArray alloc] initWithCapacity:8];
for (int i = 1; i < copyy.count; i++) {
NSString *str = @"test";
[copyy addObject:[str copy][i]];
}
You can write a simple category on top of the
NSArraylike:so you can build an array by repeating an object like:
Note: if you want a mutable version, just ask for a
mutableCopy: