//水滴动画
-(void)dropWaterEffect:(UIView*)view
{
//定义动画效果
CATransition* trans=[CATransition animation];
//动画持续时间
trans.duration=1;
trans.type=@"rippleEffect";
//添加动画效果
[view.layer addAnimation:trans forKey:nil];
}
//翻页动画
-(void)turnPageEffect:(UIView*)view isUp:(BOOL)value
{
//开始动画
[UIView beginAnimations:nil context:nil];
//设定动画持续时间
[UIView setAnimationDuration:1];
//
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
//设定动画效果
if (value)
{
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:view cache:YES];
}
else
{
[UIView setAnimationTransition:UIViewAnimationTransitionCurlDown forView:view cache:YES];
}
[UIView commitAnimations];
}