CCTableView for cocos2dx

CCTableView for cocos2dx
0.0 0


it has several class
》 CCTableViewCell
》 CCTableView
》 CCScrollLayerExt

and some test class


here is the Test code

TestCCTableView * testTableview = new TestCCTableView(CCRectMake(0,40,200,240)); this->addChild(testTableview);//note that you have to release it by yourself.

but i can’t finish how to CCTableView::dequeueReusableCellWithIdentifier(const char * mCellIdentifier) , so i comment some code! (45.4 KB)


i would like somebody to help me to improve it…or there is some other solutions for CCTableView


i finish some part

delete CCTableViewCell like UITableViewCell
add CCTableViewCell dynamic
reload CCTableViewCell with “virtual void ccTableViewWillReloadCellForRowAtIndexPath(CCIndexPath &mIndexPath,CCTableViewCell * mTableViewCell,CCTableView * mTableView)” datasource virtual method
>scroll like UITableView

here is Screen shot picture.


好东西啊 mark一下


Hello, I tested it on win32, but missing some files: ccDrawExt.h DecoratedBox.h


ccDrawExt.h DecoratedBox.h
is for a testing, it’s not necessary.


Hi, I’m test TableView on XCode 4.3.1 and IOS5 , but Have a problem during the compile

Undefined symbols for architecture i386:
“TestCCTableView::TestCCTableView(cocos2d::CCRect)”, referenced from:
CMainTitleClass::init() in CMainTitleClass.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

please Help me…T_T


plz , check your include header, i had compile it ok on xcode 4.3.1 and ios5 ,
tips: change compiler to LLVM GCC 4.2.



I’ve tested the code briefly and came to the conclusion that CCTableView doesn’t support long lists very nicely.
When scrolling it stops the scroll when loading new items into the view tricking you that you are at the end of the list.

Otherwise nice job!


Could you please give me some codes so that I can learn how to use it?
I have met some problems, too.



I use cocos2dx 2.0.x version.
But CCTableView have some problem at cocos2dx 2.0.x version.
So, I fixed it. (code migration.)

But I’ve some problem. The Problem is CCTableViewCell add at CCScrollViewExt upper part.
I attach screen shot and my probject source.
Please check it.

Thank you.