I want to get a number of space, how can I get that quickly? I don't want to do this by the following code.
NSString *str = @"";
// for example I want to get a string with 10 spaces
for (int i = 0; i< 10; i++) {
str= [str stringByAppendingString:@" "];
}
I think the code is not an efficient one. who can give me another more efficient way.