how to append next line(break line) while parsing
i am doing following parsing in objective c.
- (void)parser:(NSXMLParser *)parser foundCharac开发者_JS百科ters:(NSString *)string {
if (!_chars) {
_chars = [string mutableCopy];
} else {
[_chars appendString:string];
[_chars appendString:break line??];
}
}
i want to append or break line after every string found. How can i do this ?
[_chars appendString:@"\n"];
Should add new line.
@"\n"
That should do it just fine i recon
精彩评论