Comparison of iOS network request frameworks and ios request frameworks

Source: Internet
Author: User

Comparison of iOS network request frameworks and ios request frameworks

Currently, there are three main frameworks: ASIHTTPRequest, AFNetworking, and MKNetworkKit.

The ASIHTTPRequest framework was the first designed framework. It is powerful but does not support ARC and has been updated. AFNetworking is a later framework, which is simpler than ASIHTTPRequest. The source of MKNetworkKit's design philosophy and the former two combine the common characteristics of the first two frameworks and add new features. Compared with the former two, MKNetworkKit is the most lightweight framework.




Information Source: Instructor Guan Dongsheng's ios development guide;


IOS Network Development

Mobile Phone: IOS has many network frameworks, the most classic ASHTTP
AFNETWORK is recommended.
Server: depending on the language you are familiar with, the server has a web service. Your client requests this web service and returns data. The data format is often json, xml, or string.

The other is the knowledge of uikit. Since you are a standalone app, this is not a problem.

Ios network problems

The problem is clearly described. Whether the json content I sent should be this:
{"Username": "testapp", "role_id": 2, "password": "123 "}
The server returns an empty result.
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.