我正在使用代码
[UIView animateWithDuration:2.0
animations:^{
[self.slidingDownImage setFrame:CGRectMake(rect.origin.x,
rect.origin.y,
rect.size.width,
rect.size.height+100)];
}completion:^(BOOL finished){
if (finished) {
[self.slidingDownImage setFrame:CGRectMake(originalFrame.origin.x,
originalFrame.origin.y,
originalFrame.size.width,
originalFrame.size.height+100)];
}
}];
它执行刷卡segue。但是当我移动到下一个控制器时,这些动画将被删除。我希望在转换到下一个视图控制器时保存视图(保持动画)。有什么想法吗?