Currently playing around with my a viewcontroller. So the thing is, instead of me having the controls in the top, I want to make my own custom previous button. I figured that the below code is what i should use:
@IBAction func previousButtonTapped(sender: UIButton) {
self.navigationController?.popViewController(animated: true)
}
It makes an error, Expression of type 'UIViewController?' is unused.
I went ahead and figured that I could use _ = before self. However I get a Thread 1: signal SIGABRT.
So really, I don't know what I'm doing wrong here.