Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UITextView causes NSZomebie when deallocating. #14

Open
nothing2lose-zz opened this issue May 8, 2019 · 1 comment
Open

UITextView causes NSZomebie when deallocating. #14

nothing2lose-zz opened this issue May 8, 2019 · 1 comment

Comments

@nothing2lose-zz
Copy link

nothing2lose-zz commented May 8, 2019

co-worker found this issue.

I do not know what is make this problem exactly.

This issue does not appear if remove below code and KVO observes.
UITextView.cpk_swizzle(method1: "dealloc", method2: #selector(UITextView.cpk_deinit))

image

I found some answers. but I can not found the reason.

Someone did test method swizzle already(https://github.com/inamiy/Swizzle/blob/master/SwizzleTests/_TestObject.swift).

It can be a reason.

Deinitializers are called automatically, just before instance deallocation takes place. You are not allowed to call a deinitializer yourself. Superclass deinitializers are inherited by their subclasses, and the superclass deinitializer is called automatically at the end of a subclass deinitializer implementation. Superclass deinitializers are always called, even if a subclass does not provide its own deinitializer.

@daogeng
Copy link

daogeng commented Jul 23, 2024

Do you have a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants