标签:model style range orm hone 隐藏 nbsp UI with
NSString *phone = [model.phone stringByReplacingOccurrencesOfString:[model.phone substringWithRange:NSMakeRange(3, 4)] withString:@"****"]; // NSMakeRange(3, 4) 代表 从第三位开始 隐藏4个字符串
[self.phoneBtn setTitle:phone forState:UIControlStateNormal];
身份证号同样如此
标签:model style range orm hone 隐藏 nbsp UI with
原文地址:http://www.cnblogs.com/chenzq12/p/6878668.html