Re: Framing a UIImageView
Re: Framing a UIImageView
- Subject: Re: Framing a UIImageView
- From: Development <email@hidden>
- Date: Wed, 9 Sep 2009 19:15:38 -0700
Ahha. Ok thank you very much that answers the question
On Sep 9, 2009, at 7:13 PM, Joshua Pennington wrote:
UIImageView uses its underlying layer property to draw the image, so
-drawRect: is not being invoked.
If you are simply wanting to display a border around the image, see
CALayer's borderColor & borderWidth properties.
i.e.
imageView.layer.borderWidth = 1.0;
imageView.layer.borderColor = [[UIColor redColor] CGColor];
Cheers,
Joshua
On Sep 9, 2009, at 8:54 PM, Development
<email@hidden> wrote:
I'm trying to stroke a rect around a UIImage. I have subclassed
UIImageView with the following code but I get Nothing the drawRect:
method is never called:
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden