-
Notifications
You must be signed in to change notification settings - Fork 97
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
Swift KVO crash after deinit #40
Comments
Is this when you go back while pull to refresh is loading? I think weak self should help in this situation. |
I'm afraid not.I tried, but it still crash.You can try this on any simulator that <= iOS11. |
The reason is the ScrollView own a NSKeyValueObservation instance that observer the same ScrollView.But on iOS11, That all work. |
Same here
|
Are you able to reproduce this consistently? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hello, in your demo project, the view controller would't be released(memery leak).After I added
unowned self
, the view controller has deinit, but demo will crash. It will append <= iOS11, it's look like system bug.The text was updated successfully, but these errors were encountered: