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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…