xcode - EXEC_BAD_ACCESS when concatenting a large string.
- by Frames1984
I'm getting a EXEC_BAD_ACCESS when concatenting a large string.
I've read from a feed and to create my webview i build up my string like:
NSString *pageData = @"<h1>header</h1>";
pageData = [pageData stringByAppendingFormat@"<p>"];
pageData = [pageData stringByAppendingFormat@"self.bodyText"];
pageData = [pageData stringByAppendingFormat@"</p>"];
etc
problem i've got is self.bodytext is 21,089 charachers with spaces when I do a count on word.
Is there a better method for doing this?
Thank