用户登录
用户注册

分享至

iOS视图翻页过渡效果

  • 作者: 浅灰星
  • 来源: 51数据库
  • 2022-08-17
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];

软件
前端设计
程序设计
Java相关