i need to create CCTableViewCell with variable size unlike its actual implementation to achieve something like this ???
It was done here(http://www.cocos2d-x.org/boards/6/topics/15559?r=19304#message-19304)
And you could download the code snippet from https://gist.github.com/3697056.
i have tried this to make a demo but the result is not as expected its still the same size after declaring the fixedCell size as false ….
struct DataSource: public CCTableViewDataSource
{
virtual bool hasFixedCellSize()
{
return false;
}
virtual CCSize cellSizeForIndex(CCTableView* table, unsigned int idx)
{ // Did you return the correct size here?
return CCSize(...);
}
/* ... */
};
dinesh varma wrote:
i have tried this to make a demo but the result is not as expected its still the same size after declaring the fixedCell size as false ….
@james BTW i did the same , the result is still same size…