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

Error When do the refresh and press back #12

Closed
shanmarkus opened this issue Dec 10, 2015 · 6 comments
Closed

Error When do the refresh and press back #12

shanmarkus opened this issue Dec 10, 2015 · 6 comments

Comments

@shanmarkus
Copy link

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'An instance 0x12e95fc00 of class UITableView was deallocated while key value observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x12fc63f10> (
<NSKeyValueObservance 0x12fc34920: Observer: 0x12fc5ada0, Key path: contentOffset, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x12f915730>
)'

already did the de init :(

@shanmarkus
Copy link
Author

found the solution !

just add

override func viewWillDisappear(animated: Bool) {
super.viewWillDisappear(animated)
self.tableView.dg_stopLoading()
}

to stop the loading. Cheers.

@shanmarkus
Copy link
Author

Observer: 0x160359d20, Key path: contentInset, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x15efab460>

it seems the contentInset that cause the problem

@gontovnik
Copy link
Owner

I think this issue is related to #5, isn't it?

@shanmarkus
Copy link
Author

found the quick hack however, it still cause an error sometimes

override func viewWillDisappear(animated: Bool) {
self.tableView.dg_stopLoading()
super.viewWillDisappear(animated)
}

@shanmarkus
Copy link
Author

@gontovnik i found the solution 👍 Thanks Btw.

@gontovnik
Copy link
Owner

Thank you 👍

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