转载:http://blog.csdn.net/ysy441088327/article/details/7568428
- typedef NS_OPTIONS(NSUInteger, UIViewAnimationOptions) {
- UIViewAnimationOptionLayoutSubviews = 1 << 0,
- UIViewAnimationOptionAllowUserInteraction = 1 << 1, // 允许视图在播放动画的时候 依旧触发事件
- UIViewAnimationOptionBeginFromCurrentState = 1 << 2, // 从当前状态开始动画
- UIViewAnimationOptionRepeat = 1 << 3, // 重复执行动画
- UIViewAnimationOptionAutoreverse = 1 << 4, // 执行动画回路
- UIViewAnimationOptionOverrideInheritedDuration = 1 << 5, // ignore nested duration
- UIViewAnimationOptionOverrideInheritedCurve = 1 << 6, // ignore nested curve
- UIViewAnimationOptionAllowAnimatedContent = 1 << 7, // animate contents (applies to transitions only)
- UIViewAnimationOptionShowHideTransitionViews = 1 << 8, // flip to/from hidden state instead of adding/removing
- UIViewAnimationOptionCurveEaseInOut = 0 << 16, // 由慢到快
- UIViewAnimationOptionCurveEaseIn = 1 << 16, // 由慢到飞快
- UIViewAnimationOptionCurveEaseOut = 2 << 16, // 由快到慢
- UIViewAnimationOptionCurveLinear = 3 << 16, // 匀速展示动画
- UIViewAnimationOptionTransitionNone = 0 << 20, // default
- UIViewAnimationOptionTransitionFlipFromLeft = 1 << 20,
- UIViewAnimationOptionTransitionFlipFromRight = 2 << 20,
- UIViewAnimationOptionTransitionCurlUp = 3 << 20,
- UIViewAnimationOptionTransitionCurlDown = 4 << 20,
- UIViewAnimationOptionTransitionCrossDissolve = 5 << 20,
- UIViewAnimationOptionTransitionFlipFromTop = 6 << 20,
- UIViewAnimationOptionTransitionFlipFromBottom = 7 << 20,
- } NS_ENUM_AVAILABLE_IOS(4_0);