UICollectionView Cell + UiLabel with AutoLayout

后端 未结 6 796
醉酒成梦
醉酒成梦 2020-12-29 08:14

I\'m trying to pin an UILabel to it\'s parent cell. I added four constraints (top, leading, trailing, bottom) which works fine on iOS 8.0 but not on iOS 7.X

6条回答
  •  情书的邮戳
    2020-12-29 09:06

    I hope you have added constraints to the collection with respect to it's parent (which would be the view of the UIViewController) so that it's width and height is equal to the parent view.

    enter image description here

提交回复
热议问题