一,工程图。

【代码笔记】iOS-正方形转换

二,代码。

RootViewControlle.m

【代码笔记】iOS-正方形转换
//点击任何处,页面翻转
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    FirstViewController *first=[[FirstViewController alloc]init];
    
    CATransition *animation = [CATransition animation];
    [animation setType:@"cube"];
    [animation setSubtype:kCATransitionFromLeft];
    [animation setDuration:1.0f];
    [self.navigationController.view.layer addAnimation:animation forKey:@"test"];
    
    [self.navigationController pushViewController:first animated:NO];

    
}
【代码笔记】iOS-正方形转换

 

 

 
 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-03
  • 2021-08-22
猜你喜欢
  • 2021-08-04
  • 2021-04-19
  • 2021-08-15
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 2022-12-23
相关资源
相似解决方案