I got a class with a CCTableView, so it’s implementing CCTableViewDataSource and CCTableViewDelegate methods.
It also means, I have to implement CCScrollViewDelegate methods:
void scrollViewDidScroll(cocos2d::extension::CCScrollView* view); void scrollViewDidZoom(cocos2d::extension::CCScrollView* view);
But the problem is:
This methods are not being called on my class (where CCTableView is created and defined as CCTableView delegate).
If you check this functions on CCTableView, the only method which is calling back to CCTableView delegate is “ccTouchEnded” (line 508, cocos2dx 2.0.4):
What I did to solve this problem and get callback from scrollView methods is included this code at the end of this function:
void CCTableView::scrollViewDidScroll(CCScrollView* view)
I would like to know if it is a cocos bug or I’m doing something wrong and I can do something better to solve this issue.