You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a TableViewController that uses Persei. I push the TableViewController when I select a button on my starting view. When I hit the back button in the navigation bar I get the following error:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'An instance of class UITableView was deallocated while key value observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x7fd003571060> (
<NSKeyValueObservance 0x7fd003576350: Observer: 0x7fd00370e800, Key path: contentOffset, Options: <New: YES, Old: NO, Prior: NO> Context: 0x103111190, Property: 0x7fd00378e3a0>
It looks like in StickyHeaderView is setting the observer here:
My rough idea is that willMoveToSuperview is not getting called before UITableView dealloc. A little bit unexpected. Still would like to take a look at some rough sample code. Thanks in advance.
I have a TableViewController that uses Persei. I push the TableViewController when I select a button on my starting view. When I hit the back button in the navigation bar I get the following error:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'An instance of class UITableView was deallocated while key value observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x7fd003571060> (
<NSKeyValueObservance 0x7fd003576350: Observer: 0x7fd00370e800, Key path: contentOffset, Options: <New: YES, Old: NO, Prior: NO> Context: 0x103111190, Property: 0x7fd00378e3a0>
It looks like in StickyHeaderView is setting the observer here:
How can I fix this issue? Thanks!
The text was updated successfully, but these errors were encountered: