Swipe the more than 2 Views?
<pre><code>- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event 
{
    if (dirString) 
    {
            CATransition *animation = [self getAnimation:dirString];
            [[self superview] exchangeSubviewAtIndex:0 withSubviewAtIndex:1];
            [[[self superview] layer] addAnimation:animation forKey:kAnimationKey];
    }
}
</code></pre>

<p>Hello all Im trying to work with the code above it may look familiar its from the Iphone Developer Cookbook, Erica Sandun</p>

<p>what im trying to implement are 5 different views using her swipe method
the code above has a transition between 2 views only, how would i change the code so i can swipe through all five views, example: view starts on view 1 then user swipes right then changes to view 2 and so forth and backward
your help is much appreciated </p>
