我想创建一个自定义 segue 来用 curl up 动画交换 ViewControllers,但我找不到方法,-(void)perform 会是什么?
我有这个
-(void)perform{
UIViewController *dst = [self destinationViewController];
UIViewController *src = [self sourceViewController];
[UIView beginAnimations:nil context:nil];
//change to set the time
[UIView setAnimationDuration:1];
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:src.view cache:YES];
[UIView commitAnimations];
}
但是我不能改变视图,无论如何感谢您的帮助!