NSString 去掉前后空格或回车符

NSString *string = @" spaces in front and at the end ";
NSString *trimmedString = [string stringByTrimmingCharactersInSet:
[NSCharacterSet whitespaceAndNewlineCharacterSet]];
上一篇:Excel REPT函数使用


下一篇:myeclipse 注释模板