Usama Sarwar
Usama Sarwar

Reputation: 9020

Can I change the default color of an Image Border?

I am working on app that has a story in a from of string and an image, being formatted using html to show up in a webview. image is enlrageable and when that image in the webview is tapped, just to show that image is tapped, an outline or border is created around the image and then image is enlarged.

now, i want to change that particular color which shows that, image is in tapped state. any suggestions please.

Upvotes: 1

Views: 109

Answers (3)

Manoj Yadav
Manoj Yadav

Reputation: 25

imageView.layer.borderColor=[[UIColor RedColor] CGColor];

Upvotes: 0

Arslan Anwar
Arslan Anwar

Reputation: 18746

Check out this example. It is a good tip. Change WebView Highlight Color

Upvotes: 1

Austin Hanson
Austin Hanson

Reputation: 22040

If it's in a WebView - use HTML to style the border? Otherwise use a background drawable to set a border.

Upvotes: 0

Related Questions