Saturday, March 26, 2011

objectve c split string by end on line \n

NSString* answer;
......
...... (answer var is set and has a \n )
......

NSArray *firstSplit = [answer  componentsSeparatedByString:@"\r\n"];

No comments: