开发者

Removing the last character from an NSMutableString

开发者 https://www.devze.com 2023-02-03 18:38 出处:网络
How does one remove the开发者_StackOverflow last character from an NSMutableString?You could use deleteCharactersInRange:

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

精彩评论

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