You can use NSString methods intValue longLongValue. 这个使用longvalue会crash报上面的错误 转载于:https://www.cnblogs.com/lisa090818/p/4031694.html