I have a
UIButton with an image, however, the image seems to be shifted with one edge being black
What’s even stranger is that the edge is either side or top at what-seems-to-be random
UIButton has been added via Interface Builder, and I have set the content mode to
Aspect Fill. Also, in code, I have set the following:
self.itemImage.imageView.contentMode = UIViewContentModeScaleAspectFill;
Any ideas what could be the reason? Also worth noting that this happens only on a device (iPhone 6, iOS8.4). On a simulator there are no black edges, as expected.