MCPcopy Create free account
hub / github.com/9miao/CrossApp / dequeueReusableCellWithIdentifier

Method dequeueReusableCellWithIdentifier

CrossApp/view/CACollectionView.cpp:742–754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

740}
741
742CACollectionViewCell* CACollectionView::dequeueReusableCellWithIdentifier(const char* reuseIdentifier)
743{
744 CACollectionViewCell* cell = NULL;
745
746 if (reuseIdentifier && !m_mpFreedCollectionCells[reuseIdentifier].empty())
747 {
748 cell = m_mpFreedCollectionCells[reuseIdentifier].back();
749 cell->retain()->autorelease();
750 m_mpFreedCollectionCells[reuseIdentifier].popBack();
751 }
752
753 return cell;
754}
755
756CACollectionViewCell* CACollectionView::getHighlightCollectionCell()
757{

Callers

nothing calls this directly

Calls 5

autoreleaseMethod · 0.80
retainMethod · 0.80
emptyMethod · 0.45
backMethod · 0.45
popBackMethod · 0.45

Tested by

no test coverage detected