UINavigationController - pop动画bug [英] UINavigationController - pop animation bug
问题描述
大家好!
我在使用UINavigationController动画时遇到了麻烦。
我有主 - 详细信息视图。在一个按钮上查看,这是打开的详细视图。
详细视图打开正确,标题动画正常,内容滑动。但是,当我单击返回按钮时,标题动画正确,细节内容瞬间消失,而不是动画。
以下是有关问题演示的链接: https://www.youtube.com/观看?v = C4UApAhEhx8
开放时我使用标准
AboutViewController *aboutViewController = [[AboutViewController alloc] initWithNibName:@"AboutViewController_iPhone" bundle:nil];
[self.navigationController pushViewController:aboutViewController animated:YES];
我试图用代码弹出视图,没有后退按钮,但是存在同样的问题。
I tried to pop view with code, no with back button, but there is same problem.
抱歉我的英语不好。
谢谢!
Sorry for my bad english. Thank's!
推荐答案
如果您的代码中某处要么强制拨打其中一个<$ div,则会发生这种情况c $ c> viewWillAppear 对应的 YES
或否
而不是让iOS决定,或者如果您使用 viewDidAppear
调用 [super viewWillAppear:animated]
不匹配。
This happens if somewhere in your code you are either forcing a call to one of the viewWillAppear
counterparts with YES
or NO
instead of letting iOS decide, or if you mismatch calls to [super viewWillAppear:animated]
with viewDidAppear
.
这篇关于UINavigationController - pop动画bug的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!