ios - Troubles with a cell size of a UICollectionView -


i have cell of uicollectionview size

func collectionview(collectionview: uicollectionview, layout collectionviewlayout: uicollectionviewlayout, sizeforitematindexpath indexpath: nsindexpath) -> cgsize {      return cgsize(width: self.view.frame.width / 2 - 10,height: self.view.frame.width / 2 - 10) 

enter image description here

enter image description here

but @ run time

enter image description here

storyboard

enter image description here

new!

after scroll view fine

enter image description here

start of array views before scroll

enter image description here

end of array

enter image description here

again start of array views after scroll

enter image description here

thanks. wrong cell ?


Comments

Popular posts from this blog

javascript - Access directive function from component class or template -

python - Evaluating the next line in a For Loop while in the current iteration -

php - Auto increment employee ID -