目前玩我的viewcontroller。所以事情是,我想要自己定制上一个按钮,而不是我在顶部有控件。 我认为以下代码是我应该使用的:
@IBAction func previousButtonTapped(sender: UIButton) {
self.navigationController?.popViewController(animated: true)
}
出错,Expression of type 'UIViewController?' is unused.
我继续前进,并认为我可以在自我之前使用_ =。但是我得到Thread 1: signal SIGABRT.
所以,我真的不知道我在这里做错了什么。