Commonly used frameworks such as: Afnetworking,asihttprequest,sdwebimage,mknetworkkit and so on.
IOS5 has been out so long, and asihttprequest the author has affirmed that not updated, in the IOS5 environment, in fact, there are some problems.
Now Mknetworkki absorbs the advantages of asihttprequest and afnetworking, and joins its own unique functions.
Download:GitHub Address: Https://github.com/MugunthKumar/MKNetworkKit.git
official instructions for use:http://blog.mugunthkumar.com/products/ios-framework-introducing-mknetworkkit/
GitHub downloaded the project, if you want to run its demo, be sure to open mknetworkkit.xcworkspace the file, if opened separately, the compile will prompt the missing LIBMKNETWORKKIT-IOS.A file!!!
Installation:after cloning, drag the mknetworkkit folder into the project and introduce 3 frameworks: cfnetwork.framework, systemconfiguration.framework, security.framework
Note: since Mknetworkkit supports arc, we have to open arc in the project , or we will get an error .
turn on the ARC automatic Memory control mechanism:( all dealloc,release,autorelease are commented out in the project after opening arc)
How to use: Import where you need to use:#import "MKNetworkKit.h" http Mode:
GET request : POST request:
HTTPS mode:CopDownload File:Upload file:
Server-side Program (node. js) When uploading files: