I have created an Photo album using UICollectionView.
I want to handle cell size by codding.
If it is possible then please provide me the code.
Thank you.
How to set collection view cell size in iOS?
1502
29-Dec-2015
Updated on 29-Dec-2015
Tarun Kumar
29-Dec-2015To set the collection view cell size, you can use collectionView method sizeForItemAtIndexPath: .
Here is an example:
I hope the above code is helpful for you, because I am using that code in our own sample.