iOS视图翻页过渡效果

2015-01-20 0 530
iOS视图翻页过渡效果
CGContextRef context = UIGraphicsGetCurrentContext(); 
[UIView beginAnimations:nil context:context];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; 
[UIView setAnimationDuration:1.0];
// Apply the animation to the backdrop
[UIView setAnimationTransition: 
    UIViewAnimationTransitionCurlUp
    forView:myView cache:YES];
// Exchange the two foreground views 
[myView exchangeSubviewAtIndex:0
    withSubviewAtIndex:1]; 
[UIView commitAnimations];

遇见资源网 objective-c iOS视图翻页过渡效果 http://www.ox520.com/16085.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务