3、枚举:枚举类型参考系统应该写全类型:名称+类型 typedef NS_ENUM(NSInteger, UIViewAnimationTransition) { UIViewAnimationTransitionNone
回调实现动画的代码封装 1 #pragma UIView实现动画 2 - (void) animationWithView : (UIView *)view WithAnimationTransition : (UIViewAnimationTransition
setAnimationTransition:forView:cache:在动画块中为视图设置过渡 + (void)setAnimationTransition:(UIViewAnimationTransition 可能的值定义在UIViewAnimationTransition中。 view 需要过渡的视图对象。
UIView.h的结构主要分为4个部分: 常用枚举类型的定义,主要包括 视图动画曲线 UIViewAnimationCurve 视图内容填充模式 UIViewContentMode 视图动画过渡效果 UIViewAnimationTransition < 视图右下角对齐. 37 }; 38 39 /** UIView动画过渡效果 */ 40 typedef NS_ENUM(NSInteger, UIViewAnimationTransition setAnimationBeginsFromCurrentState:(BOOL)fromCurrentState; 372 373 /** 在动画块中为视图设置过渡动画 */ 374 + (void)setAnimationTransition:(UIViewAnimationTransition
setAnimationTransition:forView:cache: 在动画块中为视图设置过渡 + (void)setAnimationTransition:(UIViewAnimationTransition 可能的值定义在UIViewAnimationTransition中。 view 需要过渡的视图对象。