【问题标题】:Segue from a static and manually placed UITableViewCell to UIViewController从静态和手动放置的 UITableViewCell 到 UIViewController
【发布时间】:2019-04-05 05:53:16
【问题描述】:

步骤

  1. 我已手动将 UITableViewCell 放入 UIViewController。

  2. 从 UITableViewCell 拖放一个 segue 到相邻的 UIViewController

从截图中可以看出,segue 已经创建

问题:没有发生 Segue。

我确实在模拟器中的 UITableViewCell 上看到了点击效果(灰色背景)。

【问题讨论】:

  • 所以你使用的是UITableViewCell而不是UITableView
  • UITableViewCell(独立)独立,没有UITableView
  • 你实际上想要达到什么目的?
  • 我希望它充当一个按钮并连接到相邻的UIViewController
  • 那你为什么不直接使用UIButton呢?

标签: ios swift uitableview segue


【解决方案1】:

我通过在 VC 中放置一个 UITableView 解决了这个问题,然后从那里创建了一个 segue。

【讨论】:

    猜你喜欢
    • 2012-04-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-04-18
    • 2014-12-07
    • 2023-03-11
    相关资源
    最近更新 更多