【发布时间】:2012-08-19 13:21:35
【问题描述】:
我目前正在使用此代码:
FlipView *fv = [[FlipView alloc]init];
[UIView transitionWithView:flipContainer
duration:1
options:UIViewAnimationOptionTransitionFlipFromLeft
animations:^{
[flipContainer addSubview:fv];
}
completion:NULL];
翻转包含 UIImage 的容器视图以显示第二个视图 (FlipView)。 FlipView 是一个 UIView,它的背景设置为红色以便调试。
现在发生的情况是容器翻转,但它显示的内容与以前相同,尽管使用了:
[flipContainer addSubview:fv];
我做错了什么?
【问题讨论】:
标签: ios uiview core-animation