ios - UITableView 和导航 Controller

标签 ios objective-c

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

相关文章:

ios - 视频无法在 iPhone 上播放

ios - 在 iOS 中存储 session ID 的最佳方式是什么?

ios - Objective-C:将图像从文件复制到设备粘贴板

ios - Titanium - 在 iOS native 模块中包装 ADTECHMobileSDK 的 CoreData 错误

iphone - 如何测量 iPhone 中滑动的速度,然后计算图像的旋转?

javascript - Action 不会触发 React + Redux 中的 reducer

ios - 变量的类型不完整 'struct my_error_mgr'

ios - 命令 PhaseScriptExecution 以非零退出代码 Xcode 11.3.1 失败

ios - UITextFieldDelegate "shouldChangeTextInRange"未调用

ios - 将 UIButton 添加到 mapkit 中的注释标注