Last active
February 18, 2016 16:19
-
-
Save initFabian/9c61052e66891dc48d5a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath:NSIndexPath)->UICollectionViewCell | |
{ | |
var cell = collectionView.dequeueReusableCellWithReuseIdentifier("CELL", forIndexPath: indexPath) as CollectionCell | |
//using titleLabel as an example | |
if (_cell.titleLabel != nil) { | |
print("cell being reused") | |
} else { | |
// .... | |
cell.titleLabel.text="cellText" | |
} | |
return cell | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment