popViewController线程1 SIGABRT

时间:2016-10-03 22:28:14

标签: ios swift xcode

目前玩我的viewcontroller。所以事情是,我想要自己定制上一个按钮,而不是我在顶部有控件。 我认为以下代码是我应该使用的:

@IBAction func previousButtonTapped(sender: UIButton) {
    self.navigationController?.popViewController(animated: true)
}

出错,Expression of type 'UIViewController?' is unused.

我继续前进,并认为我可以在自我之前使用_ =。但是我得到Thread 1: signal SIGABRT. 所以,我真的不知道我在这里做错了什么。

0 个答案:

没有答案