IOS Shouldapplyexclusivetouch, * *-[xxxx respondstoselector:]: Message sent to Deallloc instance

Source: Internet
Author: User

This problem typically occurs when zombie objects are called and crashes when the Zombie object method is invoked.


For the Zombie object mode how to set up, own Baidu, here only analyze three possible reasons:

1.block deferred execution, causing block code blocks to invoke object methods after the object may disappear

2. If the zombie mode + global breakpoint is set, still crashes in the main function, it is likely that the xib line, such as Xib button Point method in the code has been deleted, but the Xib connection has not been removed, causing bad lines, may cause a crash

3.UIview animation + Strong reference ring: For example: A controller set B control for the strong properties, b control Click a page add a B control to view, and do animation and enter the C page, C page return directly call a controller's destruction method. This creates a reference loop: B-a,a cannot be released (because B is the strong attribute, and b clicks on it and is addsubview by A's view), and the B control persists. If you're on a page and you click on one of the other pages and crash into the main function, that's probably why.


Here I met the reason three, the solution is that when the B control is clicked, the B control is removefromsuperview and the B control property is set to weak.


More questions, please Gathen discussion: 565191947

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.