i've a collectionView
with different collectionCell
and i want to set a scale/height/size depending of the cell. How can i do it ?
Here is the image of my different cell : a title cell
, and 2 different cell image
. One is width of the view / 3 and the other is / 2. I can't do it with auto layout constraint in the story board so i need to do in the code. I'm trying to use the collectionViewLayout.
implement
class MyViewController: UIViewController, UICollectionViewDataSource , UICollectionViewDelegate , UICollectionViewFlowLayout
in
ViewDidLoad
add delegate of flow layout