我正在使用xcode5和ios7,编译器显示此错误:隐式转换将整数精度长长丢失到 NSInteger
if (statusCode == 200 && !upload) {
totalBytesExpectedToRead = [response expectedContentLength];
有什么帮助吗?
NSURLResponse expectedContentLength
返回类型 long long
。
我怀疑你已经将你的totalBytesExpectedToRead
变量声明为NSInteger
,如果你把它long long
错误就会消失。
long long totalBytesExpectedToRead;