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

php - Auto increment employee ID -

php - isset function not working properly -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -