【问题标题】:Unwind Segue with UITableView Cell使用 UITableView Cell 展开 Segue
【发布时间】:2015-07-04 04:18:37
【问题描述】:

我已经在这个问题上提到了这些和其他人,但无法按照他们的步骤解决我的问题。我没有足够的“点”来评论他们,所以我在这里问我的问题。

UIButton 上使用 unwindToSegue 有效,但在 UITableViewCell 上无效

我的 MainView 控制器中有我的 unwindToSegue() 函数,并且我有一个 SubViewController,它有一个视图和一个表。

我尝试过从 Cell 拖动控件以退出并同时使用 Selection Segue 和 Accessory Segue。

perform segue with UITableview inside a tableviewcell

Unwind Segue with UITableViewCell in Xamarin.iOS

此测试项目的链接 https://github.com/zgmorris13/swiftMenuSystem

【问题讨论】:

  • 也许你需要给一个演示的链接。
  • NSDeveloper 我已经为这个测试项目添加了一个指向 git 存储库的链接。

标签: swift uitableview unwind-segue


【解决方案1】:
//self.tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: "scriptureCell")

只需删除它。一切正常。这些解释了原因:

tableviewdequeuereusablecellwithidentifier-issues-with-global-constant

马特对uitableview-in-swift的回答

James Wang 的回答 Assertion failure in dequeueReusableCellWithIdentifier:forIndexPath:

【讨论】:

  • 就是这样。谢谢!现在我需要一个能给我5小时生命的人。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2016-08-15
  • 1970-01-01
  • 2017-11-22
  • 1970-01-01
  • 2015-03-29
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多