标签:截取 nsstring
NSString *str = @"a&aa&aaa&aaaa&aaaa";
NSArray *arr = [str componentsSeparatedByString:@"&"];
NSLog(@"%@----",arr);
打印结果
(
a,
aa,
aaa,
aaaa,
aaaa
)----
iOS 遇到指定字符进行截取
原文地址:http://blog.csdn.net/duoduo_333/article/details/44754399