I’m trying to make it so that I have a UIImageView with an image, regardless of its size beforehand, so that the background color of the UIImageView shows up as a border around the UIImage.
I tried making the UIImageView with an image and then shrinking the bounds but that didn’t work.
Any help?
A much simpler approach is to setup the border on the image view’s layer:
You need to import
<QuartzCore/QuartzCore.h>to make this work.