Microsoft: Https://github.com/microsoft
Square:https://github.com/square
Ali: Https://github.com/alibaba
...
The world's top open source projects are preferred to open source on GitHub
Linux:https://github.com/torvalds/linux
Rails:https://github.com/rails/rails
Nodejs:https://github.com/nodejs/node
Swift:https://github.com/apple/swift
Coffeescript:https://github.com/jashkenas/coffeescript
Ruby:https:/
What is ARC?
Change Point
Benefits of using ARC
Poor
Basic ARC rules
Objective-C object
Reference keywords
Summary
At the beginning of the new year, Vientiane was updated. From the beginning of the new year, let's take a closer look at the iPhone development. First, let's take a look at ARC.
What is ARC?
The following code has been written more or less by beginners of iOS development, regardless of their own or pasted code.
[[Nsbundle mainbundle] pathforresource: @ "somefilename" oftype: @ "yourfileextension"];
[Yourviewcontroller initwithnibname: "yourviewcontroller" Bundle: Nil];
But you know what bundle is here ?! Bundle i
What is bundle ID?Bundle ID (Bundle Identifier) is a unique identifier for an iOS app and is the only correspondence between apps and Bundle IDs.Note: Once the app is created, the Bundle ID will not be modifiable, and if it has to
What is the difference between Retain and Copy in IOS? iosretaincopy
1. Readability: readonly and readwrite@ Property (readwrite,...) valueType value;This attribute is the default attribute of the variable. If you (readwrite and readonly are not used, your variable is the re
throws an exception.This macro validates a parameter for an objective-c method. Simply provide the parameter as the condition argument. The macro evaluates the parameter and, if it is false, it logs a error message that includes the parameter and then raise s an exception.If you define a preprocessing macro, the Ns_block_assertions assertion is forbidden. All the breakpoint macros return void.Assertions
throws an exception.This macro validates a parameter for an objective-c method. Simply provide the parameter as the condition argument. The macro evaluates the parameter and, if it is false, it logs a error message that includes the parameter and then raise s an exception.If you define a preprocessing macro, the Ns_block_assertions assertion is forbidden. All the breakpoint macros return void.Assertions
1. Thread synchronization is multiple threads accessing the same resource at the same time, waiting for resource access to end, wasting time, inefficient, serial execution of tasksThread Async: Access resources while idle wait while accessing other resources, implement multithreading mechanism, execute task 1.2.3 mode in parallelUse GCD's primary queue. Use Nsoperationqueue to set the maximum number of threads (concurrency) to 1 1.1.1How
What is the difference between ASI and AFN?1. Performance (Focus)* ASI based on the underlying cfnetwork framework* AFN based on nsurlconnection* Operating performance: ASI > ASN2. Processing server data1> AFN: Automatic parsing based on data returned by the server* The server returns JSON data, automatically converted to nsdictionary or Nsarray* The server returns XML data and
First, create the PCH file. Click Command+n. such as OperationNaming conventions are generally: project name-prefixStep TwoOK, you have finished making the PCH file here. Then you can use it.PCH files generally write data that can be used globally.Like what:The width and color of the screen (no punctuation behind the macro)#define RGB (r,g,b,a) [Uicolor colorwithred: (r/255.0) Green: (g/255.0) Blue: (b/255.0) Alpha: (a)] #define SCREEN_W [ UIScreen mainscreen].bounds.size.width#define Screen_h
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.