ios開發切換頁面特效

來源:互聯網
上載者:User
//觸摸事件 - 當手指從螢幕抬起時調用的方法-Himi   -(void) ccTouchesEnded:(NSSet *)touches withEvent:(UIEvent *)event   {       CCScene* scenec = [OtherLayout scene];        //部落格------       //CCTransitionTurnOffTiles *transitionScene = [CCTransitionTurnOffTiles transitionWithDuration:3 scene:scenec];       //近遠-遠近-----       //CCTransitionShrinkGrow *transitionScene = [CCTransitionShrinkGrow transitionWithDuration:3 scene:scenec];       //另一個layout左側進入(視覺感覺是螢幕右移)       //CCTransitionSlideInL *transitionScene = [CCTransitionSlideInL transitionWithDuration:3 scene:scenec];       //另一個layout右側進入(視覺感覺是螢幕左移)       //CCTransitionSlideInR *transitionScene = [CCTransitionSlideInR transitionWithDuration:3 scene:scenec];       //另一個layout上側進入(視覺感覺是螢幕下移)       //CCTransitionSlideInT *transitionScene = [CCTransitionSlideInT transitionWithDuration:3 scene:scenec];       //另一個layout下側進入(視覺感覺是螢幕上移)       //CCTransitionSlideInB *transitionScene = [CCTransitionSlideInB transitionWithDuration:3 scene:scenec];       //當前螢幕被分為3列,兩則下移,中間上移       //CCTransitionSplitCols *transitionScene = [CCTransitionSplitCols transitionWithDuration:3 scene:scenec];       //當前螢幕被分為3列,兩則左移,中間右移       //CCTransitionSplitRows *transitionScene = [CCTransitionSplitRows transitionWithDuration:3 scene:scenec];          //扇形轉換-----       //CCTransitionRadialCW *transitionScene = [CCTransitionRadialCW transitionWithDuration:3 scene:scenec];       //平面旋轉-----       //CCTransitionRotoZoom *transitionScene = [CCTransitionRotoZoom transitionWithDuration:3 scene:scenec];       //近-遠-跳動------       //CCTransitionJumpZoom *transitionScene = [CCTransitionJumpZoom transitionWithDuration:3 scene:scenec];       //立體反轉(X軸)--(還有種從近到遠,從遠到近的感覺)--------       //CCTransitionZoomFlipX *transitionScene = [CCTransitionZoomFlipX transitionWithDuration:3 scene:scenec];       //立體反轉(Y軸)-(還有種從近到遠,從遠到近的感覺)-------       //CCTransitionZoomFlipY *transitionScene = [CCTransitionZoomFlipY transitionWithDuration:3 scene:scenec];       //立體反轉(X,Y軸)---(還有種從近到遠,從遠到近的感覺)-----       //CCTransitionZoomFlipAngular *transitionScene = [CCTransitionZoomFlipAngular transitionWithDuration:3 scene:scenec];       //另外一個layout左側進入覆蓋當前layout       //CCTransitionMoveInL *transitionScene = [CCTransitionMoveInL transitionWithDuration:3 scene:scenec];       //另外一個layout右側進入覆蓋當前layout       //CCTransitionMoveInR *transitionScene = [CCTransitionMoveInR transitionWithDuration:3 scene:scenec];       //另外一個layout上側進入覆蓋當前layout       //CCTransitionMoveInT *transitionScene = [CCTransitionMoveInT transitionWithDuration:3 scene:scenec];       //另外一個layout下側進入覆蓋當前layout       //CCTransitionMoveInB *transitionScene = [CCTransitionMoveInB transitionWithDuration:3 scene:scenec];       //立體反轉(X軸)--2D平面反轉,沒有遠近感       //CCTransitionFlipX *transitionScene = [CCTransitionFlipX transitionWithDuration:3 scene:scenec];       //立體反轉(Y軸)--2D平面反轉,沒有遠近感       //CCTransitionFlipY *transitionScene = [CCTransitionFlipY transitionWithDuration:3 scene:scenec];       //立體反轉(X,Y軸)--2D平面反轉,沒有遠近感       //CCTransitionFlipAngular *transitionScene = [CCTransitionFlipAngular transitionWithDuration:3 scene:scenec];       //實體-透明-實體(預設無顏色,可以附帶顏色)       //CCTransitionFade* transitionScene = [CCTransitionFade transitionWithDuration:3 scene:scenec withColor:ccWHITE];       //另外一個直接漸層覆蓋當前layout        //CCTransitionCrossFade *transitionScene = [CCTransitionCrossFade transitionWithDuration:3 scene:scenec];       //移動(方格狀)部落格,從左下往右上       //CCTransitionFadeTR *transitionScene = [CCTransitionFadeTR transitionWithDuration:3 scene:scenec];       //移動(方格狀)部落格,從右上往左下        CCTransitionFadeBL *transitionScene = [CCTransitionFadeBL transitionWithDuration:3 scene:scenec];       //移動(長矩形,寬度是螢幕寬)部落格,從下往上       //CCTransitionFadeUp *transitionScene = [CCTransitionFadeUp transitionWithDuration:3 scene:scenec];       //移動(長矩形,寬度是螢幕寬)部落格,從上往下       //CCTransitionFadeDown *transitionScene = [CCTransitionFadeDown transitionWithDuration:3 scene:scenec];       [[CCDirector sharedDirector] replaceScene: transitionScene]; 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.