i need to do a scratch effect to reveal the layer beneath, that would be for me to play with the alpha channel of an image. What would be the best way to go forward?
thanks.
i need to do a scratch effect to reveal the layer beneath, that would be for me to play with the alpha channel of an image. What would be the best way to go forward?
thanks.
There's a question about this here: Create masking effect over a view
As I see it, the best way to do this is to use openGL. Just lay the image in a UIImageView, then place an opaque openGL layer on top. Then draw using GL_LINE_STRIP, and a glBlenFunc(GL_ZERO, GL_ZERO) on user touch.
You could set the modalTransitionStyle
property of a UIViewController
to UIModalTransitionStylePartialCurl
or UIModalTransitionStyleCrossDissolve
and then display it using
[[self navigationController] presentModalViewController:someVC animated:YES]`
Not sure whether this would give you the desired effect though.
(This is how the PartialCurl looks like.)