I'm running some test on those two networking framework: MKNetworkKit and AFNetworking. And I am seeing that it is not easy to see the differences between the two libs. What are the major differences between the two?
我正在这两个网络框架上运行一些测试:MKNetworkKit和AFNetworking。我发现,要看到这两个词之间的区别并不容易。这两者之间的主要区别是什么?
1 个解决方案
#1
29
MKNetworkKit
:
MKNetworkKit:
- Cache on disk included.
- 包括缓存磁盘上。
- Frozen operations (offline requests can be queued to be executed when the network is back).
- 冻结操作(脱机请求可以在网络恢复时排队执行)。
- More lightweight.
- 更轻。
AFNetworking
:
AFNetworking:
- More users and contributors.
- 更多的用户和贡献者。
- Better documentation (clearer and more accessible).
- 更好的文档(更清晰,更容易访问)。
-
UIImageView+AFNetworking
for lazy image loading (possible in MKNK, but more painful). - UIImageView+AFNetworking用于延迟图像加载(可能在MKNK中,但更痛苦)。
- Standard (Apple-like) coding style.
- 标准(中间商)的编码风格。
- Better leverage of SDK objects (NSCoding compliant).
- 更好地利用SDK对象(兼容NSCoding)。
- Great variety of extra features and extensions (e.g. network reachability, streaming multipart form requests, backgrounding support, etc).
- 大量的额外特性和扩展(例如网络可达性、流多部分表单请求、后台支持等)。
- Has a nice project logo. ;-)
- 有一个很好的项目标志。:-)
Anything else?
还有别的事吗?
#1
29
MKNetworkKit
:
MKNetworkKit:
- Cache on disk included.
- 包括缓存磁盘上。
- Frozen operations (offline requests can be queued to be executed when the network is back).
- 冻结操作(脱机请求可以在网络恢复时排队执行)。
- More lightweight.
- 更轻。
AFNetworking
:
AFNetworking:
- More users and contributors.
- 更多的用户和贡献者。
- Better documentation (clearer and more accessible).
- 更好的文档(更清晰,更容易访问)。
-
UIImageView+AFNetworking
for lazy image loading (possible in MKNK, but more painful). - UIImageView+AFNetworking用于延迟图像加载(可能在MKNK中,但更痛苦)。
- Standard (Apple-like) coding style.
- 标准(中间商)的编码风格。
- Better leverage of SDK objects (NSCoding compliant).
- 更好地利用SDK对象(兼容NSCoding)。
- Great variety of extra features and extensions (e.g. network reachability, streaming multipart form requests, backgrounding support, etc).
- 大量的额外特性和扩展(例如网络可达性、流多部分表单请求、后台支持等)。
- Has a nice project logo. ;-)
- 有一个很好的项目标志。:-)
Anything else?
还有别的事吗?