NSString *phone = [model.phone stringByReplacingOccurrencesOfString:[model.phone substringWithRange:NSMakeRange(3, 4)] withString:@"****"]; // NSMakeRange(3, 4) 代表 从第三位开始 隐藏4个字符串
[self.phoneBtn setTitle:phone forState:UIControlStateNormal];
身份证号同样如此