OStack程序员社区-中国程序员成长平台

标题: iphone - 我如何显示 UIViewAnimationOptionTransitionCurl (MapCurl)? [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 22:58
标题: iphone - 我如何显示 UIViewAnimationOptionTransitionCurl (MapCurl)?

我如何像这样显示 ModalTransitionStyle?

enter image description here

我想像我提到的那样展示 Corner 本身。

如果我触摸角落,想打开下一个 View ......



Best Answer-推荐答案


-(void)goToPage{

 //do stuff...

 // start the animated transition
 [UIView beginAnimations"page transition" context:nil];
 [UIView setAnimationDuration:1.0];
 [UIView setAnimationTransition:flipUp ? UIViewAnimationTransitionCurlUp : UIViewAnimationTransitionCurlDown forView:self.view cache:YES];

 //insert your new subview
 //[self.view insertSubview:currentPage.view atIndex:self.view.subviews.count];

  // commit the transition animation
  [UIView commitAnimations];
}

- (BOOL)shouldAutorotateToInterfaceOrientationUIInterfaceOrientation)interfaceOrientation {
 return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}

关于iphone - 我如何显示 UIViewAnimationOptionTransitionCurl (MapCurl)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12793517/






欢迎光临 OStack程序员社区-中国程序员成长平台 (https://ostack.cn/) Powered by Discuz! X3.4