【发布时间】:2012-12-18 14:42:26
【问题描述】:
我有一个UIViewController,我的徽标居中,UITableView alpha 为 0。
在viewDidAppear: 我有这个:
[UIView animateWithDuration:0.6 delay:0.0 options:UIViewAnimationCurveEaseInOut animations:^{
[self.logo setFrame:CGRectMake(0.0f, self.view.frame.size.height - 194.0f, 320.0f, 194.0f)];
} completion:^(BOOL finished) {
[self.table setFrame:CGRectMake(0.0f, 0.0f, 320.0f, self.view.frame.size.height - 194.0f)];
[UIView animateWithDuration:0.4 delay:0.0 options:UIViewAnimationCurveEaseInOut animations:^{
[self.table setAlpha:1.0];
} completion:^(BOOL finished) {
return;
}];
return;
}];
好的,动画就是我想要的。
但是当我调用presentModalViewController: 显示下一个视图时,UIImageView 回到屏幕中心,UITableView 回到之前的高度。
动画完成后如何保持相同的大小和位置,甚至改变视图?
谢谢。
【问题讨论】:
-
你什么时候看到他们回去?在您关闭模态视图控制器后或显示时?
标签: ios uitableview animation uiimageview