两个controller左右来回切换动画
作者:
ljzza | 来源:发表于
2018-04-14 16:33 被阅读0次第一个界面
-(void)goCalendar
{
MineMyTimeViewController *mmtc = [[MineMyTimeViewController alloc]init];
[self.navigationController pushViewController:mmtc animated:YES];
// 设置翻页动画为从右边翻上来
[UIView transitionWithView:self.navigationController.view duration:1 options:UIViewAnimationOptionTransitionFlipFromRight animations:nil completion:nil];
}
第二个界面
- (void)back
{
// 设置翻转动画为从左边翻上来
[UIView transitionWithView:self.navigationController.view duration:1 options:UIViewAnimationOptionTransitionFlipFromLeft animations:nil completion:nil];
[self.navigationController popViewControllerAnimated:YES];
}
本文标题:两个controller左右来回切换动画
本文链接:https://www.haomeiwen.com/subject/ieokhftx.html
网友评论