将字符串切割成数组
NSString *a = [[NSString alloc] initWithString : @"蛋白质,黄瓜,火龙果,鸡蛋,茄子" ];
NSArray *b = [a componentsSeparatedByString:@","];
NSString *a3 = [b objectAtIndex:2];
NSLog(@"\n b的第三个是: %@", a3);
2013-05-16 09:42:57.170 计步器[579:c07]
b的第三个是: 火龙果