for example... NSString string1 = @\"Hello world\"; NSMutableStr开发者_开发百科ing string2 = [NSMutableString stringWithString: string1];
I keep getting an error with this code, the app is telling me I am trying to mutate an object which is not mutable. Can someone take a look and explain what I am doing wrong? Thanks.
This makes no sense to me.Maybe someone here can explain why this happens. I\'ve got an NSMutableString that I alloc at the top of my iPhone app, then append to later in the process.It results in a S
I\'ve got a rather large loop that gets a string, does something to it, than goes onto the next one. I was originally relea开发者_如何学Gosing it then reallocating it but thought that is a bit of wast
I\'m relatively new to Objective C and while I\'ve been trucking right along writing iPhone apps, I think I need some help understanding something.
I want simply replace all occourrencies of \"+\" with a blank \" \" char... I tried some开发者_如何学编程 sample listed here, also used NSSMutableString, but the program crash...
Using objective-c on the iPhone, what is wrong with this code? Is it leaking memory?Why? How would I do this correctly?
I am trying to display the contents of a rtf file in uiwebview. I do this by taking the contents of rtf into nsmutablestring and loading it into uiwebview.
I\'m getting a EXEC_BAD_ACCESS when concatenting a large string. I\'ve read from a feed and to create my webview I bu开发者_StackOverflow社区ild up my string like:
So I have all this code that I have debugged and it seems to be fine. I made a mutable string and for some reason I can not get it to be displayed on my label. the debugger says