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 <developm...@fornextsoft.com> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to