I am using UICollectionView
. in collection view label is overload every time i am using this code
- (UICollectionViewCell *)collectionView:(UICollec
You have to generate the instance of your label just once, for the life - time of the cell.
But as I see in your method, you will get a new instance of the label every time the method is called.
Basically, you can subclass a UICollectionViewCell
and then generate the required label only once. In the delegate method shown here, you should only update them with required information.