我正在尝试创建一个动画,该动画是我放入屏幕 View 之外的 View 框架中的 View 。然后我想将它从当前帧位置动画到屏幕上方的新位置...
目前我的代码是这样的
//..
ButtonOneViewController *b1VC = [[ButtonOneViewController alloc] initWithNibName"ButtonOneViewController" bundle:[NSBundle mainBundle]];
UIView *animatedActionView = [[UIView alloc] initWithFrame:CGRectMake(10.0, 490.0, 300.0, 380.0)]; //off screen
[animatedActionView addSubview:b1VC.view];
[otherNav.view insertSubview:animatedActionView belowSubview:tbView];
// what do I do to animate it up to a position of (10.0, 10.0, 300.0, 380.0)
任何帮助将不胜感激。
Best Answer-推荐答案 strong>
试试这个:
[UIView beginAnimations:nil context:nil];
[UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
//Change your frame here.
[UIView commitAnimations];
关于iphone - subView 从屏幕底部向上滑动,我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/10908143/
|