iOS 控制器转场动画

2017-06-20  本文已影响24人  木_风

/**

控制器转场动画

*/

+ (void)transitionsPushfromRight:(float)transitiontime transitionType:(NSString*)transitionType transitionSubType:(NSString*)transitionSubType

{

CATransition*anim = [CATransitionanimation];

anim.type= transitionType;

anim.subtype=transitionSubType;

anim.duration= transitiontime;

[[UIApplicationsharedApplication].keyWindow.layeraddAnimation:animforKey:nil];

}

上一篇下一篇

猜你喜欢

热点阅读