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

Method dequeueReusableCellWithIdentifier

CrossApp/view/CAAutoCollectionView.cpp:932–944  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

930}
931
932CACollectionViewCell* CAAutoCollectionView::dequeueReusableCellWithIdentifier(const char* reuseIdentifier)
933{
934 CACollectionViewCell* cell = NULL;
935
936 if (reuseIdentifier && !m_mpFreedCollectionCells[reuseIdentifier].empty())
937 {
938 cell = m_mpFreedCollectionCells[reuseIdentifier].back();
939 cell->retain()->autorelease();
940 m_mpFreedCollectionCells[reuseIdentifier].popBack();
941 }
942
943 return cell;
944}
945
946CACollectionViewCell* CAAutoCollectionView::getHighlightCollectionCell()
947{

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