2010-08-31 72 views

回答

4
NSString *myString = @"Foo-bar/blee"; 
NSArray *myWords = [myString componentsSeparatedByCharactersInSet: 
         [NSCharacterSet characterSetWithCharactersInString:@"-/"] 
        ]; 
+0

在你的情況下,分隔符是@「+ 」 – 2010-08-31 14:47:09

相關問題