I can think of at least a couple of ways of doing that without creating a custom view:
1. Create a new image that is a composite of the original image and  
the border image, then set the view's image to the composite.
2. Create two image views that occupy the same space and put the  
border image in the back view and the original image in the front. I  
believe that if you set the image view style to be borderless that  
the view's background is not drawn so it would look like a single image.
steve


On Jun 25, 2009, at 8:30 AM, M.S. Hrishikesh wrote:

I want to display an image with a border around it. The border may be a simple coloured box or another image (like a wooden frame around an image). Can I do this using just a ImageView?
I read parts of the Graphics and drawing guide. I am not sure if I  
need to use a custom view for this task. Could someone point me in  
the right direction ?
Thanks
Hrishi
_______________________________________________

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