I have a UIView that I would like to animate on the screen as follows:
Imagine that you are looking at a countertop and you have an envelope and the envelope in which the box is located. The box covers almost the entire envelope, but you see a small border that is not covered by the box. The animation will cover the envelope until it becomes fully visible.
I could just bring it to life, but I would need to have a different view with the image of the box above the envelope, so it would cover the envelope. My idea is to do it without this window. If I used an application, such as Photoshop, for animation, I would just make the matte (or mask) fixed and make a black rectangle where I want the envelope to be invisible, i.e. Imitate since it was closed by a box. Then, if I keep the mask fixed, I can animate the image and it will appear when it comes out from under the box, but in fact it comes from the area where the matte black (the image is invisible) to the area where the assistant is white (the image is visible )
Is it possible to do this on iOS?
Can I mask a UIImageView or layer and animate the layer fixing its mask?
Check out the slide effect here on this page
http://madrobby.github.com/scriptaculous/combination-effects-demo/
This will give you an idea of what I mean ...
thank
source
share