-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CCTableView acting weird #2049
Comments
WHICH VERSION of cocos2d-x are you using? |
i'm using 2.0.4, maybe I should Update my cocos2d-x. |
drag method is working fine in last code in github code but touch the empty space is still not work as expected ,it should be callback nothing, it still say “cell touched at index: n" |
Thank you, i will check that. |
Fixed at #2050. |
Well,goob job!It is working fine !! //////There is another BUG in reloaddata() function. I use the tableView in mulit thread.The data of cell is from another thread . |
Cocos2d-x is not thread-safe, so don't create any cocos2d-x object in another thread. |
If you make sure that all the callings of cocos2d-x api is on the main thread. |
I sorry that I am not familiar with github. I just paste the code here. // on "init" you need to initialize your instance
} //and then class TableViewTestLayer : public cocos2d::CCLayer, public cocos2d::extension::CCTableViewDataSource, public cocos2d::extension::CCTableViewDelegate |
OK, I will test it. Thank you. |
Fixed at #2056. |
AWESOME!!!It solved ,I like this tableView!!!Thanks a lot!! BTW ,how to closed this issue?.. |
I closed it. |
when the Cells' total heigh is much shorter than TableView's heigh ,(like 1 or 2 cells )it starts acting weird .
1.touch the empty space in tableView,it callback the last cell.
2. once I drag the cell. only drag left in DirectionHorizontal ,only drag down in FillTopDown
//当cell的总高度比Table小很多的时候(例如只有1或者2 个cell),这个Tableview就变得很奇怪.
1.在TableView触摸空白的地方,它回调最后一个cell
2.只要我拖动cell ,在水平方向的模式只能往左边拖,在竖直方向只能往下拖
The text was updated successfully, but these errors were encountered: