gpt4 book ai didi

ios - UITableView 和导航 Controller

转载 作者:行者123 更新时间:2023-11-29 02:55:32 25 4
gpt4 key购买 nike

我正在尝试做一个由 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];
}

有人可以帮忙吗?提前致谢。

最佳答案

我不知道这是否是同一个问题,但类似的事情发生在我身上。问题是我推送的 UIViewControllerUIViewbackgroundColor 是清晰的,这导致动画看起来很奇怪,因为我们可以看到推送UIViewController 在下面。

在推送的 UIViewControllerUIView 上设置 backgroundColor(在我的例子中,为白色)解决了问题

关于ios - UITableView 和导航 Controller ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23942743/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com