【发布时间】:2012-11-09 07:18:52
【问题描述】:
这只是一个测试项目,在我实现更大的东西之前:-)
根据图像,我在 1 个 ViewController 中创建了 2 个自定义视图。我需要它们重叠或至少移开并再次在应用程序内返回。
我已经尝试查找自定义视图,但我很幸运。
我希望使用此代码或类似的代码:
-(IBAction)move02Action
{
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.5];
_left.view.frame = CGRectMake(80, 70, 160, 380); //_left is Left UIViewContorller
_right.view.frame = CGRectMake(240, 70, 160, 380); //_right is Right UIViewContorller
[UIView commitAnimations];
}
我意识到这是针对 UIViews 而不是 View Controllers。关于在哪里看有什么想法吗?
感谢您的洞察力:-)
【问题讨论】:
标签: iphone ios uiviewcontroller storyboard containers