OC - 字符串分割 2017-08-24 本文已影响0人 摇曳 NSArray * array = [ptr componentsSeparatedByString:@" "]; NSString *string = array[0];