views:

98

answers:

1

Is there a way to set borders to a UIImage. I know how to set it for UIImageView, but my problem is the UIImage that I load up in a UIImageview wont be of the same size or aspect ratio as the UIImageView. Hence Ive kept the UIImageView mode to aspect fit. Giving a border to UIImageView now would border the entire UIImageView rather than just the UIImage, and that doesn't look good when the UIImage is not of the same size or aspect ratio as the UIV.

Help?

+1  A: 

There's some solutions in this question: http://stackoverflow.com/questions/1354811/how-can-i-take-an-uiimage-and-give-it-a-black-border

Matt Williamson