Search code examples
iosmacosnetwork-programmingafnetworkingmknetworkkit

What are the differences between MKNetworkKit and AFNetworking?


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?


Solution

  • MKNetworkKit:

    • Cache on disk included.
    • Frozen operations (offline requests can be queued to be executed when the network is back).
    • More lightweight.

    AFNetworking:

    • More users and contributors.
    • Better documentation (clearer and more accessible).
    • UIImageView+AFNetworking for lazy image loading (possible in MKNK, but more painful).
    • Standard (Apple-like) coding style.
    • Better leverage of SDK objects (NSCoding compliant).
    • 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?