Hi, I have been trying to make an animation where one view fades out, revealing the view behind it. This is pretty straight forward, but the problem is that I want the fade transition to happen from the top down, so the bottom view is revealed from the top down.
Want i want to achieve is something like this
...only, the transition should happen from the top down.
I have also tried doing something like this
But unfortunately, the kCATransitionFade does not support a direction (unlike the other transtion types)
I don't much experience on the Iphone platform yet, so I hope this will be easy for somebody who does
Want i want to achieve is something like this
Code:
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:5.0f];
[UIView setAnimationDelegate:self];
[frontView setAlpha:0];
[UIView commitAnimations];
...only, the transition should happen from the top down.
I have also tried doing something like this
Code:
CATransition *animation = [CATransition animation];
[animation setType:kCATransitionFade];
[animation setSubtype:kCATransitionFromTop];
But unfortunately, the kCATransitionFade does not support a direction (unlike the other transtion types)
I don't much experience on the Iphone platform yet, so I hope this will be easy for somebody who does