I have a few views between which I want to swipe in an iOS program. Right now, I\'m swiping between them using a modal style, with a cross dissolve animation. However, I wan
You could create a CATransition animation. Here's an example of how you can slide a second view (from left) into the screen whilst pushing the current view out:
UIView *theParentView = [self.view superview];
CATransition *animation = [CATransition animation];
[animation setDuration:0.3];
[animation setType:kCATransitionPush];
[animation setSubtype:kCATransitionFromLeft];
[animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
[theParentView addSubview:yourSecondViewController.view];
[self.view removeFromSuperview];
[[theParentView layer] addAnimation:animation forKey:@"showSecondViewController"];