[英]xcode5 ios7 error compiling code
我正在使用xcode5和ios7,編譯器向我顯示此錯誤:隱式轉換對NSInteger失去了很長時間的整數精度
if (statusCode == 200 && !upload) {
totalBytesExpectedToRead = [response expectedContentLength];
有什么幫助嗎?
NSURLResponse expectedContentLength
返回類型long long
。
我懷疑您已將totalBytesExpectedToRead
變量聲明為NSInteger
,如果將其設置得很long long
,錯誤將消失。
long long totalBytesExpectedToRead;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.