I'm using a launch screen xib and I can't get the image within the UIImageView
to appear. Currently, I have a UILabel
with the imageView placed right below the label and also centered horizontally. I set all the constraints for the imageView but for some reason the label appears but the image doesn't. This is my first time using the whole wAny hAny size classes. Is there something I'm missing?
launch screen xib not displaying imageview correctly
8.1k Views Asked by Brosef At
2
This is happening because of the horizontal space constraints of the
imageView
, both the leading and trailing space to thesuperview
. Here the launch screen is laid out in thewAny|hAny
size class. It could not satisfy theHorizontal space -(196)
on a smaller device. So what you can dowidth
constraint to theimageView
orAspect Ratio
could be more appropriate