I want to create a genie effect for a view. Actually not exactly genie effect like in MacOS i want something similar. I want a view to transform and change the position at the same time. How i would do such effect ?
I did something like that but it doesn' t give the intended effect ?
I did something like that but it doesn' t give the intended effect ?
Code:
- (void) animateTheView:(UIView *) paramView {
CATransition *transition = [CATransition animation];
transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionLinear];
transition.duration = 1.0f;
transition.type = @"suckEffect";
transition.subtype = @"fromBottom";
[UIView setAnimationTransition:(int)transition forView:paramView cache:NO];
[UIView setAnimationDuration:1.0f];
[[paramView layer] addAnimation:transition forKey:nil];
[UIView commitAnimations];
}