ios - AFURLConnectionOperation.m 隐式转换丢失整数精度 : 'int64_t' (aka 'long long' ) to 'NSInteger' (aka 'int' )

标签 ios ios7 afnetworking

我在 Xcode 5.1 中收到警告,如下所述

AFNetworking 2.2.0: AFURLConnectionOperation.m Implicit conversion loses integer precision: 'int64_t' (aka 'long long') to 'NSInteger' (aka 'int') 

这很重要吗?

最佳答案

您可以手动进行以下更改,直到下一个 CocoaPod 版本发布(更改已在 GitHub 中)。

改变:

[decoder decodeInt64ForKey:NSStringFromSelector(@selector(totalBytesRead))];

到:

[decoder decodeIntegerForKey:NSStringFromSelector(@selector(totalBytesRead))];

关于ios - AFURLConnectionOperation.m 隐式转换丢失整数精度 : 'int64_t' (aka 'long long' ) to 'NSInteger' (aka 'int' ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22350056/

相关文章:

ios - 无法将 "Done"按钮添加到 CABTMIDICentralViewController

iOS Firebase Cloud Messaging 在应用程序关闭时获取数据

ios - 如何使 AFNetworking 显示纯 HTTP 响应错误

ios - 当项目使用自动布局时,导航 Controller 无法在 iOS 7 中推送 View Controller

objective-c - UIActivityIndi​​catorView 未在 UIAlertView 中显示 - iOS7

ios - 退出 View Controller 后不要调用回调 block

ios - 如何使用 AFNetworking 3.0 在后台下载大文件并在 session 完成所有任务时显示本地通知

ios - UIAlertView 文本字段键盘类型

ios - 无法在 XCode 中存档 react-native 项目以使用 Pod 进行暂存配置

ios - 悄悄地从我的服务器发送推送通知到我的应用程序