2009-09-29 40 views
0
- (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]; 
    } 
} 

大家好我試着用代碼工作上面它可能看起來很熟悉它從iPhone開發者食譜,埃裏卡三墩滑動超過2個視圖?

什麼即時試圖實現是用她的刷卡方法 上面的代碼中有5層不同的觀點只有2個視圖之間的轉換,我將如何更改代碼,以便可以滑過所有五個視圖,例如:視圖在視圖1上開始,然後用戶向右滑動,然後變爲視圖2等等和向後 您的幫助非常感謝

回答