IOS [Uikeyboardlayoutstar release]: message sent to deallocated

Source: Internet
Author: User
Use Methodswizzle to implement security checks for system methods such as arrays, dictionaries, and so on. Obviously can achieve the desired effect, but actually found that when the keyboard is displayed in the case of the home app into the background, and then click the app icon to switch back to the foreground occurs crash:

[Uikeyboardlayoutstar release]: message sent to deallocated instance

Uikeyboardlayoutstar is a view of the layout on the keyboard,

The whole project was built under ARC, and it was weird.

All of which mention the Durexkit principle is the same, the above mentioned reason is replaced Nsarray Objectatindex: Method,

The reason for my project, however, was to replace Nsmutablearray's Objectatindex: (Nsmutablearray and Nsarray objectatindex: all replaced, replaced Nsarray Objectatindex: The method does not cause crash)

Solution: Add non-arc support and overwrite the implementation


IOS [Uikeyboardlayoutstar release]: message sent to deallocated

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.