Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 xcode5 和 ios7,编译器向我显示了这个错误:隐式转换将整数精度长整型丢失到 NSInteger
if (statusCode == 200 && !upload) { totalBytesExpectedToRead = [response expectedContentLength];
有什么帮助吗?
NSURLResponse expectedContentLength返回类型long long。
NSURLResponse expectedContentLength
long long
我怀疑您已将totalBytesExpectedToRead变量声明为NSInteger,如果您将其声明为,则long long错误将消失。
totalBytesExpectedToRead
NSInteger
long long totalBytesExpectedToRead;