what I was trying to do was to make a UIImageView darker so that the buttons and views on top of the image result. I wanted to give it the effect that is given when in ios6 a user shares using Facebook. All the content behind it becomes darker but it is visible. I tried using the:
[myImageView setOpaque:YES];
but it doesn’t do anything. Any ideas?
I believe if i understand you well is to darken an uiimageview after a button was clicked and the imageview is not the button image right?
If so what you can do is when the button is clicked, you add a mask to the uimageview layer.
you create a masking layer like this
you can change of course the alpha value 1 make it totaly dark 0 makes it totally transparent.
Okay maybe this code doesn’t work with uiimageview I’m sorry. It works with UIView and UIscrollViews. I don’t know how to do it then… Sorry