Previously, ASIHTTPRequest was used as a network library, but since it stopped updating, there could be more problems on the iOS7 and decided to replace the network library.
At present, the most popular network library has afnetworking and Mknetworkkit, after some Google, the three libraries to obtain the following comparison:
|
Afnetworking |
Mknetworkkit |
ASIHTTPRequest |
Update status |
Relatively many maintenance and users |
Relatively few maintenance and users |
Stop updating |
Support for iOS and OSX |
Is |
Is |
Is |
ARC |
Is |
Is |
Whether |
Breakpoint Continuation |
No, you can use afdownloadrequestoperation |
Is |
Is |
Synchronizing asynchronous requests |
Supports only asynchronous |
Whether |
Is |
Picture cached to Local |
No, by Sdurlcache or Afcache |
Whether |
Whether |
Picture Cache to Memory |
Is |
Is |
Whether |
Background download |
Is |
Is |
Is |
Download progress |
No, you can use Afdownloadrequestoperation |
Is |
Is |
Caching offline requests |
No, by Sdurlcache or Afcache |
Is |
Whether |
JSON, XML |
Is |
Is |
Whether |
According to the above comparison, afnetworking although compared to the Mknetworkkit function is weaker, but it is more extensible, and more maintenance, in the long run better than Mknetworkkit.
The above comparison is based on my test and check the information obtained, if there is an incorrect place also want to point out, thank you!