When I make:
NSString x = @"test"
How do I edit it so that it becomes “testing”?
And when I put:
NSMutableString x = [[NSMutableString alloc] initWithString:@"test"];
There is an error that says:
Initializer element is not a compile-time constant.
Thanks
When declaring
NSMutableString, you missed the asterisk:With a mutable string in hand, you can do
to make
xequaltesting.You do not have to go through a mutable string – this will also work: