我正在尝试做一个由 UITableView 控制的简单导航 Controller 。每当我选择其中一行时,它应该转到下一张幻灯片并在那里制作动画。每当我执行此代码时,动画只会进行一半,然后卡住,然后消失。
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
description* desc=[[description alloc] init];
[tableView deselectRowAtIndexPath:indexPath animated:YES];
[self.navigationController pushViewController:desc animated:YES];
}
有人可以帮忙吗?提前致谢。
最佳答案
我不知道这是否是同一个问题,但类似的事情发生在我身上。问题是我推送的 UIViewController
的 UIView
的 backgroundColor
是清晰的,这导致动画看起来很奇怪,因为我们可以看到推送UIViewController 在下面。
在推送的 UIViewController
的 UIView
上设置 backgroundColor
(在我的例子中,为白色)解决了问题
关于ios - UITableView 和导航 Controller ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23942743/