/**
控制器转场动画
*/
+ (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];
}
网友评论