iOSアニメーションの列挙UIViewAnimationOptions

2067 ワード

まずこの列挙はUIViewAnimationに属する.私たちがよく使う関数は
[UIView animateWithDuration: animations:^{} completion:^(BOOL finished) {}]
[UIView animateWithDuration: animations:^{}];
この関数は、アニメーションが少し複雑な場合、たとえば組み合わせが必要な場合などに使用できます.
[UIView animateWithDuration: delay: options: animations: completion:^(BOOL finished) {}];
以上の方法のoptionsの1つは列挙を入力する必要があります.この列挙では、現在のネストされているアニメーションについて、時間の経過に伴う遅い種類のアニメーションを実行します.アニメーションは繰り返しますか.もし私がターンテーブルアニメーションを使用する場合、どのターンテーブル効果を使用しますか.また、子アニメーションが親アニメーションにネストされている場合、親アニメーションと同じオプションをどのように扱うかなどです.
 UIViewAnimationOptionLayoutSubviews            //            ,              。

    UIViewAnimationOptionAllowUserInteraction      //         ,    

    UIViewAnimationOptionBeginFromCurrentState     //         

    UIViewAnimationOptionRepeat                    //      

    UIViewAnimationOptionAutoreverse               //      ,           

    UIViewAnimationOptionOverrideInheritedDuration //             

    UIViewAnimationOptionOverrideInheritedCurve    //               

    UIViewAnimationOptionAllowAnimatedContent      //               ,  key           

    UIViewAnimationOptionShowHideTransitionViews   //                   

    UIViewAnimationOptionOverrideInheritedOptions  //       �  

   //        

    UIViewAnimationOptionCurveEaseInOut            //      ,    

    UIViewAnimationOptionCurveEaseIn               //      ,      

    UIViewAnimationOptionCurveEaseOut              //      ,    

    UIViewAnimationOptionCurveLinear               //      ,  

   //       

    UIViewAnimationOptionTransitionNone            //     

    UIViewAnimationOptionTransitionFlipFromLeft    //      

    UIViewAnimationOptionTransitionFlipFromRight   //      

    UIViewAnimationOptionTransitionCurlUp          //    

    UIViewAnimationOptionTransitionCurlDown        //    

    UIViewAnimationOptionTransitionCrossDissolve   //      

    UIViewAnimationOptionTransitionFlipFromTop     //      

    UIViewAnimationOptionTransitionFlipFromBottom  //