xcode - EXEC_BAD_ACCESS when concatenting a large string.
Posted
by Frames1984
on Stack Overflow
See other posts from Stack Overflow
or by Frames1984
Published on 2010-05-04T16:06:06Z
Indexed on
2010/05/04
16:08 UTC
Read the original article
Hit count: 127
xcode
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
© Stack Overflow or respective owner