-[__NSCFString longValue]: unrecognized selector sent to instance You can use NSString methods intValue longLongValue. 这个使用longvalue会crash报上面的错误