uiview动画

CATransition *transition = [CATransition animation];
        transition.duration = 0.7;
        transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
        transition.type = @"pageCurl";//{kCATransitionMoveIn, kCATransitionPush, kCATransitionReveal, kCATransitionFade};
        
        //更多私有{@"cube",@"suckEffect",@"oglFlip",@"rippleEffect",@"pageCurl",@"pageUnCurl",@"cameraIrisHollowOpen",@"cameraIrisHollowClose"};
        transition.subtype = kCATransitionFromBottom;//{kCATransitionFromLeft, kCATransitionFromRight, kCATransitionFromTop, kCATransitionFromBottom};
        [[UIApplication sharedApplication].keyWindow.layer addAnimation:transition forKey:nil];
        [[[UIApplication sharedApplication] keyWindow] setRootViewController:tabbar];

你可能感兴趣的:(UIView)