IOS knowledge point summary
1. IBAction: ensure that methods can be connected.
Equivalent to void
2. IBOutlet: ensure that attributes can be connected
3. the arrow in the stroyboard file means the entry of the program.
4. Adjust the scale Shortcut of the simulator: command + 1
Command + 2
Command + 3
5. Bundle Identifier: Unique ID of the app
6. Exit the keyboard:
First responder: the control that calls the keyboard. when the control is inappropriate, the first responder will return the keyboard.
[Self. num resignFirstResponder];
7. provide external interfaces: proxy and block
8. synchronous asynchronous judgment: the return value must not be added to asynchronous ---.
If there is return, it indicates synchronization.
9. Differences between cache and document
User-generated files are stored in documents, and their files are stored in the library/cache.
Simple Description: if you are using a notepad app, you will always save things after writing them. The file is generated by the user and stored in the documents folder.
If you have an app that needs to work with the server, you can often download things from the server and show them to users. The downloaded items are stored in the library/cache.
Apple is very strict with this. If it is wrong, it will be rejected. The main cause is the synchronization of ios cloud.
10. Difference Between get and Post Methods
Get)
Post (form submission without restrictions on the length of submitted data (in case of a large amount of data, it is private, first injected, and then taken to transfer data to the server ))
11. Others
Connection client and server connection
Session mobile phone connection
AFN substitutes
ASR Terminator
Network request: must have a client and a server
URL: Uniform Resource Locator (Protocol domain name port number)
URI: Uniform Resource Identifier