iOS 控制器转场动画

/**

控制器转场动画

*/

+ (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];

}

你可能感兴趣的:(iOS 控制器转场动画)