iOS 把手机号中的4位数替换成****
2018-03-05 本文已影响13人
风规自远
-(NSString *)changeTelephone:(NSString*)teleStr{
NSString * string = [teleStr stringByReplacingOccurrencesOfString:[teleStrsubstringWithRange:NSMakeRange(3,4)]withString:@"****"];
return string;
}
-(NSString *)changeTelephone:(NSString*)teleStr{
NSString * string = [teleStr stringByReplacingOccurrencesOfString:[teleStrsubstringWithRange:NSMakeRange(3,4)]withString:@"****"];
return string;
}