CCBottomRefreshControl
CCBottomRefreshControl copied to clipboard
Crash in method brc_reloadData
View controller A pushes to view controller B, and then navigate back to A while B is refreshing. What happens is that B ends refreshing after it's deallocated.
I tried the following code in B but crashes still happen.
override func viewWillDisappear(animated: Bool) {
super.viewWillDisappear(animated)
if isMovingFromParentViewController() {
refreshControlBottom.endRefreshing()
}
}
Do you have any idea? Thanks so much.