iOS Implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned long') to 'int'

作者: iOS 发布时间: 2021-03-24 浏览: 2945 次 编辑
出现Implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned long') to 'int意思是NSUinteger隐式转换int会丢失精度,会报这个⚠️但是程序可以正常运行,要消掉这个警告需要手动转换比如:
(int)array.count