stringByReplacingOccurrencesOfString
2017-09-22 18:57 dengchaojie_learner 阅读(536) 评论(0) 编辑 收藏 举报
NSString *temp = @"4581230915932414=190110110006767";
NSRange range2 = [temp rangeOfString:@"="];
if (range2.length != 0) {
[temp stringByReplacingOccurrencesOfString:@"=" withString:@"D"];
self.userhelper.trackData2 = temp;
}
注意,方法处理后,会返回新的字符串;本身temp不会改变;