將字符串轉(zhuǎn)化為可變字符串,再根據(jù)指定字符查找該字符浙踢,再在該字符前面插入換行符
NSMutableString * name = [NSMutableString stringWithFormat:@"%@",model.name];
NSRange range = [name rangeOfString:@"("];
if (range.location != NSNotFound) {
[name insertString:@"\n" atIndex:range.location];
}