NSString 去掉两边空格
NSString *utlStr = [urlString stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]];
去掉 NSString 中的空格
NSString *utlStr = [urlString stringByReplacingOccurrencesOfString:@" " withString:@""];
NSString 去掉两边空格
NSString *utlStr = [urlString stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]];
去掉 NSString 中的空格
NSString *utlStr = [urlString stringByReplacingOccurrencesOfString:@" " withString:@""];
本文标题:NSString 去除空格
本文链接:https://www.haomeiwen.com/subject/jqttbxtx.html
网友评论