开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜