一,工程图。
images/loading.gif' data-original="http://images2015.cnblogs.com/blog/337518/201510/337518-20151022100253817-853334232.jpg" width="367" height="400" />
二,代码。
RootViewControlle.m
//点击任何处,页面翻转-(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]; }
原标题:【代码笔记】正方形转换
关键词: