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) :
but has not same size on ios7 :
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.
Comments
Post a Comment