CCObject* CChangeHeadImg::gridviewDataSource(CCObject* pConvertCell, unsigned int uIdx) { CGridViewCell* pCell = (CGridViewCell*)pConvertCell; if (uIdx<m_headIconList.size()) { pCell = new CGridViewCell(); pCell->autorelease(); pCell->setTag(uIdx); addGridCell(uIdx,pCell); } return pCell; }
CCObject* CSignLayer::gridviewDataSource(CCObject* pConvertCell, unsigned int uIdx) { CGridViewCell* pCell = (CGridViewCell*)pConvertCell; if (!pCell) { pCell = new CGridViewCell(); pCell->autorelease(); pCell->setTag(uIdx); } else { pCell->removeAllChildren(); } addGridCell(uIdx,pCell); return pCell; }