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 - Thinglink image not visible until browser resize -

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

mongodb - How to keep track of users making Stripe Payments -