Closed ccmjz closed 8 years ago
You got any time to actually work on this or fix it?
I'll find some time to fix it today.
Just curious if it's a race condition how nulifyDelegates will help? it happens due to use it from different threads? how race condition happens?
I don't remember it clearly, but the case is like this:
So we need a method to remove data source and delegate inside provider.
It was related to not nullifying the delegate properly. You need to force it. On Fri, Jul 15, 2016 at 11:04 NIE, Shanhe notifications@github.com wrote:
I don't remember it clearly, but the case is like this:
- Try to do something being able to update the data source, such as load more at bottom, pull to refresh
- Leave the view after provider received new data, but before finished the animation of update.
- When provider trying to update cell view, it'll crash because the tableview is gone.
So we need a method to remove data source and delegate inside provider.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/samsao/DataProvider/issues/5#issuecomment-232976715, or mute the thread https://github.com/notifications/unsubscribe-auth/AD31_SPzcHKecc3sPDjngzscOtpld-zwks5qV6FzgaJpZM4I4kNH .
Ah, so it's not race condition then. I got it.
Yea it's a deallocation problem more On Fri, Jul 15, 2016 at 11:05 Alex Hmelevski notifications@github.com wrote:
Ah, so it's not race condition then. I got it.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/samsao/DataProvider/issues/5#issuecomment-232977169, or mute the thread https://github.com/notifications/unsubscribe-auth/AD31_Xask424Vul_3muP0b0tLAhVLJjsks5qV6HUgaJpZM4I4kNH .
It need a method to nullifyDelegates