I have animation code in a class that extends the UIView:
// Start Animation Block
CGContextRef context = UIGraphicsGetCurrentContext();
[UIView beginAnimati
Apple have a pretty good tutorial on view transitions here. Other than the way they implement them you can also look at using a UINavigationController which manages a bunch of views and transitioning between them.
Essentially you need to manage the transition in the superview rather than the view - the superview can know who it's currently displaying and who's next.