iOS development--summary & keyword Introduction

Source: Internet
Author: User
<span id="Label3"></p><span class="link_title"><span class="link_title">keyword Introduction</span></span><p><p></p></p><p><p><span style="font-size: 14px;">In the development of ios, every key word of the system is everywhere, but not every key word is so clear, so Luo listed some key words for everyone to learn from each other, there is imperfect place please correct me, thank you</span></p></p><p><p><span style="font-size: 14px;"><br></span></p></p> <table style="width: 1343px; height: 867px;" border="0" cellspacing="0" cellpadding="0"> <colgroup> <col width="164"> <col width="510"> </colgroup> <tbody> <tr> <td>Atomic</td> <td>Atomic is a thread-protection technique used by objc, basically to prevent the data from being read by another thread when the write is not Completed. This mechanism is resource-intensive, so nonatomic is a very good choice on small devices such as the iphone, if there is no communication programming between multiple THREADS.</td> </tr> <tr> <td>Super</td> <td>Calling a method of the parent class</td> </tr> <tr> <td>ReadOnly</td> <td>The Description property is read-only and the default tag is to read and write</td> </tr> <tr> <td>ReadWrite</td> <td>The Description property is read-write, which is also the default property</td> </tr> <tr> <td>Retain</td> <td>Frees the old object, assigns the value of the old object to the input object, and then increases the index count of the input object to 1</td> </tr> <tr> <td>Self</td> <td>is a hidden parameter that points to the class of the currently calling method</td> </tr> <tr> <td>Setter</td> <td>Sets the specified set method</td> </tr> <tr> <td>Getter</td> <td>Sets the specified Get method</td> </tr> <tr> <td>Property</td> <td>Set the properties of member variables (with read/write, assignment assign,retain,copy, and support for multithreading Nonatomic)</td> </tr> <tr> <td>End</td> <td>The end of a class header file or implementation file</td> </tr> <tr> <td>Copy</td> <td>Create an object with an index count of 1 and then release the old object</td> </tr> <tr> <td>Assign</td> <td>Simple assignment without changing the reference count</td> </tr> <tr> <td>Synthesize</td> <td>According to the @property setting, the corresponding access method of the member variable is generated automatically, so that the member variable can be accessed conveniently using the point Operator.</td> </tr> <tr> <td>Import</td> <td>Tell the preprocessor to include the contents of the header file in this file</td> </tr> <tr> <td>Dynamic</td> <td>Tell the compiler to implement the Access method by ourselves</td> </tr> <tr> <td>Nonatomic</td> <td>Non-atomic access, no lock on attribute assignment, multi-threaded concurrent access improves performance</td> </tr> <tr> <td>Implementation</td> <td>Indicates the implementation of the class</td> </tr> <tr> <td>Strong</td> <td>Strong references, as long as the last strong pointer no longer points to the object, then the object will be freed, and all weak pointers will be cleared</td> </tr> <tr> <td>Weak</td> <td>Weak references</td> </tr> <tr> <td>__strong</td> <td>is the default keyword</td> </tr> <tr> <td>__weak</td> <td>Declares a weak reference that can be automatically Nil.</td> </tr> <tr> <td>__unsafe_unretained</td> <td>Declares a weak application, but does not automatically nil, that is, if the area of memory pointed to is released, the pointer is a wild pointer.</td> </tr> <tr> <td>__autoreleasing</td> <td>Used to modify the parameters of a function, which is automatically released when the function returns.</td> </tr> <tr> <td>unsafe_unretained</td> <td>Weak references, easy to generate wild pointers, try to use less unsafe_unretained keywords</td> </tr> <tr> <td>Synchronized</td> <td>Method plus Lock</td> </tr> </tbody> </table><p><p>iOS development--summary & keyword Introduction</p></p></span>

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.