"OBJECTIVE-C Programming" must explicitly describe intended ownership of an object array parameter exception error solution

Source: Internet
Author: User

At the time of making a multi-graphic example of an OOP of OC. Xcode unprovoked report must explicitly describe intended ownership of an object array parameter"Exception information, check the code a few times or the compiler error, After looking for a long time to know the reason, now share this error to everyone.


Key code for error:


  • Wrong translation: the ownership of the target object must be explicitly described. Personal understanding is probably the problem of allocating space, not conforming to the rules of memory management

  • treatment: The solution is to set the project Automatic Reference counting to No, because you Xcode4.2 the above with this setting and the default setting is yes. This setting is primarily to set up automatic memory management. We set it to not automatically manage the error .





  • Ok. On this mistake to share this, there is not the right place to point out to explore and learn from each other!

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

"OBJECTIVE-C Programming" must explicitly describe intended ownership of an object array parameter exception error solution

Related Article

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.