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"];
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"];
You can try this also:
Code :
Result in Console :
[233:907] you : This is you String!
[233:907] you : This is you String!123
[233:907] you : This is you String!123
This code here is working for me
So my guess is that your
you
is a bad pointer that is notnil
and not the NSString you think it have.Have you try an NSLog on that value before the call?
Please try this