[ios2]componentsSeparatedByCharactersInSet使用方法

NSString*str =@"A~B^C";

NSArray*arr =[str componentsSeparatedByCharactersInSet:           [NSCharacterSet characterSetWithCharactersInString:@"^~"]];

NSLog(@"%@", arr);
posted @ 2013-08-20 09:48  金建彤  阅读(1633)  评论(0编辑  收藏  举报