Core Animation

来源:互联网 发布:夏普电视便宜 知乎 编辑:程序博客网 时间:2024/04/27 23:36

转载:http://blog.csdn.net/ysy441088327/article/details/7568428


  1. typedef NS_OPTIONS(NSUInteger, UIViewAnimationOptions) {  
  2.     UIViewAnimationOptionLayoutSubviews            = 1 <<  0,  
  3.     UIViewAnimationOptionAllowUserInteraction      = 1 <<  1, // 允许视图在播放动画的时候 依旧触发事件  
  4.     UIViewAnimationOptionBeginFromCurrentState     = 1 <<  2, // 从当前状态开始动画  
  5.     UIViewAnimationOptionRepeat                    = 1 <<  3, // 重复执行动画  
  6.     UIViewAnimationOptionAutoreverse               = 1 <<  4, // 执行动画回路  
  7.     UIViewAnimationOptionOverrideInheritedDuration = 1 <<  5, // ignore nested duration  
  8.     UIViewAnimationOptionOverrideInheritedCurve    = 1 <<  6, // ignore nested curve  
  9.     UIViewAnimationOptionAllowAnimatedContent      = 1 <<  7, // animate contents (applies to transitions only)  
  10.     UIViewAnimationOptionShowHideTransitionViews   = 1 <<  8, // flip to/from hidden state instead of adding/removing  
  11.       
  12.     UIViewAnimationOptionCurveEaseInOut            = 0 << 16, // 由慢到快  
  13.     UIViewAnimationOptionCurveEaseIn               = 1 << 16, // 由慢到飞快  
  14.     UIViewAnimationOptionCurveEaseOut              = 2 << 16, // 由快到慢  
  15.     UIViewAnimationOptionCurveLinear               = 3 << 16, // 匀速展示动画  
  16.       
  17.     UIViewAnimationOptionTransitionNone            = 0 << 20, // default  
  18.     UIViewAnimationOptionTransitionFlipFromLeft    = 1 << 20,  
  19.     UIViewAnimationOptionTransitionFlipFromRight   = 2 << 20,  
  20.     UIViewAnimationOptionTransitionCurlUp          = 3 << 20,  
  21.     UIViewAnimationOptionTransitionCurlDown        = 4 << 20,  
  22.     UIViewAnimationOptionTransitionCrossDissolve   = 5 << 20,  
  23.     UIViewAnimationOptionTransitionFlipFromTop     = 6 << 20,  
  24.     UIViewAnimationOptionTransitionFlipFromBottom  = 7 << 20,  
  25. } NS_ENUM_AVAILABLE_IOS(4_0); 

0 0
原创粉丝点击