Swipe the more than 2 Views?
Posted
by Silent
on Stack Overflow
See other posts from Stack Overflow
or by Silent
Published on 2009-09-29T21:29:38Z
Indexed on
2010/05/06
7:08 UTC
Read the original article
Hit count: 298
iphone-sdk
|iphone
- (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];
}
}
Hello all Im trying to work with the code above it may look familiar its from the Iphone Developer Cookbook, Erica Sandun
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
© Stack Overflow or respective owner