iphone - UICollectionViewCell has a not the same size on iOS7 and iOS 8 -


i'm building uicollectionview each cell has size of 159x159. when app runs on ios8 gives (whatever simulator choose : iphone 4s, 5, 5s, 6, 6 plus) :

on iphone simulator ios 8.3

but has not same size on ios7 :

on iphone simulator ios 7.1

wtf ? note searchbar has not same width on both simulators.

the reason ios8 has layout margins whilst ios7 not. have made constraints of views margins.

the way facilitate if want ios8 version in both, don't constrain views margins, edges themselves, , have constant space between views , edges. if using storyboards auto layout, notice can tick either on or off if constrain margins or not.

margins constraint


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -