【发布时间】:2013-09-26 12:03:57
【问题描述】:
我正在使用 xcode5 和 ios7,编译器显示此错误: 隐式转换将整数精度 long long 丢失为 NSInteger
if (statusCode == 200 && !upload) {
totalBytesExpectedToRead = [response expectedContentLength];
有什么帮助吗?
【问题讨论】:
我正在使用 xcode5 和 ios7,编译器显示此错误: 隐式转换将整数精度 long long 丢失为 NSInteger
if (statusCode == 200 && !upload) {
totalBytesExpectedToRead = [response expectedContentLength];
有什么帮助吗?
【问题讨论】:
NSURLResponse expectedContentLength 返回类型long long。
我怀疑您已将 totalBytesExpectedToRead 变量声明为 NSInteger,如果您将其声明为 long long,则错误将消失。
long long totalBytesExpectedToRead;
【讨论】: