xcode5 ios7 编译代码时出错



我正在使用xcode5和ios7,编译器显示此错误:隐式转换将整数精度长长丢失到 NSInteger

     if (statusCode == 200 && !upload) {
    totalBytesExpectedToRead = [response expectedContentLength];

有什么帮助吗?

NSURLResponse expectedContentLength 返回类型 long long

我怀疑你已经将你的totalBytesExpectedToRead变量声明为NSInteger,如果你把它long long错误就会消失。

long long totalBytesExpectedToRead;

最新更新