使用 UITableView Cell 展开 Segue
Unwind Segue with UITableView Cell
在这个问题上我已经提到了这两个和其他人,但无法按照他们的步骤解决我的问题。我没有足够的 "points" 来评论他们,所以我在这里问我的问题。
在 UIButton
上使用 unwindToSegue 有效,但在 UITableViewCell
上无效
我的 MainView 控制器中有我的 unwindToSegue()
函数,我有一个 SubViewController,它有一个视图和一个 table 在它的视图中。
我试过控制从 Cell 拖动到退出并同时使用 Selection Segue 和 Accessory Segue。
perform segue with UITableview inside a tableviewcell
Unwind Segue with UITableViewCell in Xamarin.iOS
Link到这个测试项目
https://github.com/zgmorris13/swiftMenuSystem
//self.tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: "scriptureCell")
去掉this.Everything就可以了。这些解释了原因:
tableviewdequeuereusablecellwithidentifier-issues-with-global-constant
马特对 uitableview-in-swift
的回答
James Wang 的回答
Assertion failure in dequeueReusableCellWithIdentifier:forIndexPath:
在这个问题上我已经提到了这两个和其他人,但无法按照他们的步骤解决我的问题。我没有足够的 "points" 来评论他们,所以我在这里问我的问题。
在 UIButton
上使用 unwindToSegue 有效,但在 UITableViewCell
我的 MainView 控制器中有我的 unwindToSegue()
函数,我有一个 SubViewController,它有一个视图和一个 table 在它的视图中。
我试过控制从 Cell 拖动到退出并同时使用 Selection Segue 和 Accessory Segue。
perform segue with UITableview inside a tableviewcell
Unwind Segue with UITableViewCell in Xamarin.iOS
Link到这个测试项目 https://github.com/zgmorris13/swiftMenuSystem
//self.tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: "scriptureCell")
去掉this.Everything就可以了。这些解释了原因:
tableviewdequeuereusablecellwithidentifier-issues-with-global-constant
马特对 uitableview-in-swift
的回答James Wang 的回答 Assertion failure in dequeueReusableCellWithIdentifier:forIndexPath: