RockBaby
RockBaby

Reputation: 381

Highlighting UIImageView with grey color

How do it highlight the UIImageView when i touches it?

Upvotes: 0

Views: 4700

Answers (3)

Ankit Srivastava
Ankit Srivastava

Reputation: 12405

imageView.alpha=0.5; will do the trick.

EDIT at wizH look at this image.. enter image description here

Upvotes: 5

wizH
wizH

Reputation: 488

You can set a specific image for the selected state. Just add whatever effects you want to your image and save it as imageNameSelected and set the selected state for that name. This will work just fine!

For the dot you should create another question as it's not related to this in any way.

Upvotes: 0

zoul
zoul

Reputation: 104065

One option is to place the image view into a second view with a colored background, then you can “highlight” the image view by setting its alpha below one.

Upvotes: 2

Related Questions