Reputation: 29886
How does one remove the last character from an NSMutableString?
Upvotes: 52
Views: 21004
Reputation: 90117
You could use deleteCharactersInRange:
NSMutableString *str = [NSMutableString stringWithString:@"FooBarx"];
[str deleteCharactersInRange:NSMakeRange([str length]-1, 1)];
Upvotes: 141