vlasov / CCBottomRefreshControl

MIT License
319 stars 77 forks source link

No animation on updating data #10

Closed AlexanderZubkov closed 9 years ago

AlexanderZubkov commented 9 years ago

After releasing the tableView activity indicator should appear under the last cell. Sometimes it appears under the last one, sometimes it is inside the last cell and sometimes it may not appear at all. And when it does not appear you do not know if the tableView already updated or not. I set userInteractionEnabled = NO when I start downloading new data and when I got it I call "end updating", [tableView reloadData] and userInteractionEnabled = YES all together. That is how I know when table is not updated yet but refresh control not appearing.

Do you know how to make it appear each time?

vlasov commented 9 years ago

Does Example project work fine for you?

On 19 марта 2015 г., at 12:41, AlexanderZubkov notifications@github.com wrote:

After releasing the tableView activity indicator should appear under the last cell. Sometimes it appears under the last one, sometimes it is inside the last cell and sometimes it may not appear at all. And when it does not appear you do not know if the tableView already updated or not. I set userInteractionEnabled = NO when I start downloading new data and when I got it I call "end updating", [tableView reloadData] and userInteractionEnabled = YES all together. That is how I know when table is not updated yet but refresh control not appearing.

Do you know how to make it appear each time?

— Reply to this email directly or view it on GitHub https://github.com/vlasov/CCBottomRefreshControl/issues/10.

AlexanderZubkov commented 9 years ago

Nikolay, thank you, it's working. It was wrong to set tableView.scrollEnabled = NO and tableView.userInteractionEnabled = NO inside (void)refreshBottom.