获取到最后一个字符
NSString *lastString = [cityString substringFromIndex:cityString.length-1];
复制代码
去除最后一个字符
cityString = [cityString substringToIndex:[cityString length]-1];
复制代码
NSString *lastString = [cityString substringFromIndex:cityString.length-1];
复制代码
cityString = [cityString substringToIndex:[cityString length]-1];
复制代码