In the Photos app, there is a nice water drop effect used for transition. I had seen an app a while ago that used this same water effect transition for it's content views.
Unfortunately, this transition type is not listed in the UIViewAnimationTransition documentation. But since this third party app used it (I don't remember it's name), I guess that there is a way of using it.
Does anyone know?
From stackoverflow
-
It is not part of the published SDK. If you want to sell your app in the app store, you need to implement this yourself.
Thanks : actually i would it make for free... but i guess that makes no difference ;) -
I think it's just a hidden
CATransition
type:CATransition *transition = [CATransition animation]; transition.type = @"rippleEffect"; transition.duration = 5.0f; transition.timingFunction = UIViewAnimationCurveEaseInOut; [self.layer addAnimation:transition forKey:@"transitionViewAnimation"];
(Note: I haven't tried this for
rippleEffect
but I have usedsuckEffect
andspewEffect
similarly)Thanks : thanks! I tried that, but seems to not work on the simulator. Is that private API stuff?rpetrich : The simulator only supports most of the public animation types; the private ones such as suckEffect will show as a fade transition.
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.