我正在尝试制作一个自定义序列,其中 src 跌落以显示 dst。这是我目前拥有的。我怎样才能让 dst 在 src 后面?
-(void)perform {
UIViewController *src = [self sourceViewController];
UIViewController *dst = [self destinationViewController];
[UIView animateWithDuration:0.5
delay:0.0
options:UIViewAnimationCurveEaseIn
animations:^{
[src.parentViewController.view setTransform:CGAffineTransformMakeTranslation(0, src.view.bounds.size.height)];
}
completion:nil];
[src presentViewController:dst animated:NO completion:nil];
}