Registration notification listening must be canceled when a notification/listener is registered

Source: Internet
Author: User

Registration notification listening must be canceled when a notification/listener is registered
An instance 0x15618e00 of class UITextView was deallocated while key value observers were still registered with it. observation info was leaked, and may even become mistakenly attached to some other object. set a breakpoint on NSKVODeallocateBreak to stop here in the debugger. here's the current observation info: <symbol 0x159b3b70> (<NSKeyValueObservance 0x159b3b30: Observer: 0x14c68c00, Key path: contentSize, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x159cab50>)
Http://www.tuicool.com/articles/yEVzE3E

I listened to UITextView but did not log out.
Registered, must be canceled. You also need to determine whether the operation exists before canceling the operation. If the operation does not exist, you cannot perform the operation. (Some do not determine whether the operation exists. You can use a variable to determine whether the operation exists. For example: bool, int)

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.