开发者

Removing the last character from an NSMutableString

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)];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜