I use this code to make the transition between a subview and another but the animation is jerky in my iphone but not in the simulator!
Any help appreciated.
UIView *currentView =mysubview;
[currentView setHidden:TRUE];//hide previous view
PoemResults *view1=[[PoemResults alloc] initWithNibName:@"PoemResults" bundle:nil];
[currentView addSubview:view1.view];
[currentView setHidden:FALSE];
// set up an animation for the transition between the views
CATransition *animation = [CATransition animation];
[animation setDuration:0.5];
[animation setType:kCATransitionPush];
[animation setSubtype:kCATransitionFromRight];
animation.delegate=self;
[animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
[[mysubview layer] addAnimation:animation forKey:@"SwitchToView1w"];
No solution found i have used different catransition that worked with no jerky animation.