How does one remove the开发者_StackOverflow last character from an NSMutableString?
You could use deleteCharactersInRange:
NSMutableString *str = [NSMutableString stringWithString:@"FooBarx"];
[str deleteCharactersInRange:NSMakeRange([str length]-1, 1)];
精彩评论