Introduction to network data download and JSON parsing
In this article, I'm going to introduce you to any JSON-formatted data in iOS that uses nsrulconnection to download data from the Web, and how to display asynchronous downloads of data and images.
The relevant knowledge points
1.NSRULConnection of asynchronous downloads and encapsulation
Parsing of 2.JSON formats and JSON formats
3. Data display and sdwebimage asynchronous display pictures
Content
1. Introduction to Network Download basics
What is a Web application?
The program structure of network application
Common forms of network interfaces
Common data formats
General flow of interface development
Use of 2.NSRULConnection
NSString Downloading data synchronously
1ViewController1 *VC1 =[[ViewController1 alloc] init];2Uinavigationcontroller *NVC1 =[[Uinavigationcontroller alloc] initwithrootviewcontroller:vc1];3 4ViewController2 *VC2 =[[ViewController2 alloc] init];5Uinavigationcontroller *NVC2 =[[Uinavigationcontroller alloc] INITWITHROOTVIEWCONTROLLER:VC2];6 7 8ViewController3 *VC3 =[[ViewController3 alloc] init];9Uinavigationcontroller *NVC3 = [[Uinavigationcontroller alloc] initwithrootviewcontroller:vc3];
3.JSON Format Declaration and formatting tools
4. Implementation of a complete page (including model creation, use of sdwebimage)
iOS Web data download and JSON parsing