今天出现了如题所示的问题,不断的输出NSScanner:nil string argument、 检查了下原因,是intWithString:的参数传入了nil.就会出现这个问题。 确保参数不为nil。