eye*_*and 6

我很确定具体的东西不会有内置方法.脱离我的头顶:

for(unsigned int i = 0; i < [string length]; ++i)
{
    if([string characterAtIndex:i] == ',')
    {
         ++commaCount;
         if(commaCount == 3)
         {
              return [string substringWithRange: NSMakeRange(0, i)];
         }
     }
}
Run Code Online (Sandbox Code Playgroud)

http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html

苹果参考文件通常是一个很好的起点.