is there a simple way to remove the extra spaces in a string? ie like...
NSString *str = @"this string has extra empty spaces";
result should be:
NSString *str = @"this string has extra empty spaces";
Thanks!
See Question&Answers more detail:os