I have an NSString named ‘you’ with value “This is a you string!”.
I want to concat “123” in ‘you’, how can I do it?
I am using this code and it is giving an error.
you=[you stringByAppendingString:@"123"];
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.
This code here is working for me
So my guess is that your
youis a bad pointer that is notniland not the NSString you think it have.Have you try an NSLog on that value before the call?