Dark Horse programmer--arc

Source: Internet
Author: User
------Java Training, Android training, iOS training,. NET training, look forward to communicating with you! -------Arc's judgment: The object will be released as long as there is no strong pointer to the object ARC features: 1 does not allow calls to release,release,retaincount2> allow rewrite dealloc, but does not allow calls to "super Dealloc "3> @property parameter * Strong: member variable when strong pointer (for OC object type) * Weak: member variable is if pointer, (for OC Object) * Assign: For non OC object Type 4" previous retain changed to St Rong Pointer 2 kinds: 1 strong pointer: By default, all pointers are strong pointers __strong2 if the pointer: __weak if the weak pointer points to the object, then the object will be freed and then destroyed if the pointer is empty, for example: __weak person * p = [person Alloc] init];//error notation (meaningless, creation is destroyed) when the two ends of the circular reference: Arc:1 End With Strong, the other 1 end with weak non-arc:1 end with retain, the other 1 end with assign @property (Nonautomic, strong) Dog * dog;//(Arc controlled) previous retain were replaced by strong

Dark Horse programmer--arc

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.