how to spite the string in objective-c

0 votes
356 views
asked Apr 3, 2013 in Objective C by codeg (2,600 points)
how to spite the string in objective-c?

1 Answer

0 votes
answered Jun 21, 2013 by john (4,220 points)

hi

for sample

   @"Check|26,rose|22,freekicktube.com|30,facebook|32,google|54"

 

The following line...

testArray2 = [s componentsSeparatedByString:@"|"];
...