CCBottomRefreshControl icon indicating copy to clipboard operation
CCBottomRefreshControl copied to clipboard

Crash in method brc_reloadData

Open jaybowang opened this issue 9 years ago • 0 comments

0820e377-01c5-45c0-8601-87bfe3b89a0d

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.

jaybowang avatar Feb 24 '16 14:02 jaybowang