【发布时间】:2013-06-29 15:27:07
【问题描述】:
代码片段:
NSString *tempStr = self.consumerNumber.text; if ([tempStr hasPrefix:@"0"] && [tempStr length] > 1) { tempStr = [tempStr substringFromIndex:1]; [self.consumerNumbers addObject:tempStr];> }
我尝试了这些东西,只删除了一个零。如何删除多于一个零
输出:001600240321
预期结果:1600240321
非常感谢任何帮助
提前致谢!!!!!
【问题讨论】:
-
非常感谢 Dharmbir Choudhary....
-
欢迎您,亲爱的......
标签: iphone ios string nsstring texttrimming