I can create a regular NSString easily:
NSString *string = @"string value"; // Case 1
Is it possible to do something like this?
NSMutableString *mutableString = @"mutableString value"; // Case 2
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can initialize the string as mentioned in some of the other answers, but for constant strings like that, I prefer to send the
-mutableCopymessage:It just feels easy to read to me, but it’s a matter of style preference.