【发布时间】:2013-07-05 08:24:15
【问题描述】:
我正在尝试制作一个自定义序列,其中 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];
}
【问题讨论】:
-
iOS 7 仍处于保密协议下。因此,在当前格式中,它是题外话。您需要联系 developer.apple 以获得支持
-
问题在iOS 6的上下文中完全一样。会改变标题。
标签: iphone ios objective-c uiviewcontroller segue