抽离转场动画,使用户只需关心UI样式。
2种风格样式:RTAnimationTransitionStyleAlert
、RTAnimationTransitionStyleSheet
。
使自定义的UIViewController
遵守RTPopAnimatedDelegate
协议。
#import "RTPopAnimatedDelegate.h"
@interface SheetViewController : UIViewController<RTPopAnimatedDelegate>
@end
...
- (RTAnimationTransitionStyle)animatedTransitionStyle {
return RTAnimationTransitionStyleSheet;
}