【发布时间】:2015-02-16 12:39:48
【问题描述】:
通常,我会这样改变视图:
var goBackToMainView:MainViewController = self.storyboard?.instantiateViewControllerWithIdentifier("navigation2") as MainViewController
self.presentViewController(goBackToMainView, animated: true, completion: nil)
但是,如果我在用户点击按钮时尝试在自定义 UITableViewCell 中执行此操作,则会出现 customTableViewCell does not have a member named 'storyboard' and 'presentViewController' 之类的错误
如何更改 TableViewCell 中的视图?
【问题讨论】:
标签: uitableview button swift uiviewcontroller