1. Multithreading Technology
There are four ways to open threads, the basic is: Nsthread, nsoperation, GCD; another one is old-fashioned. Based on C language. Do not write, basic use.
Example: Home in the network picture displayed on the phone interface
First step: code block to open an async child thread to load network data:
[nsurlconnection sendasynchronousrequest: Request queue: [nsoperationqueue New]
Step two: After loading is complete. Turn on the main thread and place the data in the main thread for processing:
Dispatch_async(dispatch_get_main_queue (), ^{
});
2. Data format and parsing method:
Data encapsulation is generally done with JSON. JSON parsing on the mobile phone side. ---------widely used.
There is also an XML data format that can be used with DOM, SAX ... 、、、、--------used less. The parsing speed is slow and the memory consumption is large.
3. Entire Network architecture
3 years of university laboratory experience, from the bottom sensor----microcontroller-----Wireless Communication Network----Server-----database-------Mobile and PC end. A system can be set up independently.
Ios-7-to commemorate the first offer you've just received (here are the questions you'll encounter in the interview)