vlasov / CCBottomRefreshControl

MIT License
319 stars 77 forks source link

Crash in method brc_reloadData #24

Open jaybowang opened 8 years ago

jaybowang commented 8 years ago

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.