I am using xcode5 and ios7 and the compiler shows me this error: Implicit conversion loses integer precision long long to NSInteger
if (statusCode == 200 && !upload) {
totalBytesExpectedToRead = [response expectedContentLength];
Any help?
NSURLResponse expectedContentLength
returns type long long
.
I suspect you have declared your totalBytesExpectedToRead
variable as an NSInteger
, if you make it long long
the error will go away.
long long totalBytesExpectedToRead;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.