作者:我是小白我有不烦的梦想 | 来源:互联网 | 2023-05-18 10:56
how can I check if the NSString *val I have has a Integer or float ?? The raw approach is to look for "." character..but is there a more graceful way to do this?
如何检查NSString *val是否有整数或浮点数?原始的方法是寻找“。”但有没有更优雅的方式来做到这一点呢?
1 个解决方案