Poping view controller from navigation stack does not returns anything. Then also when I have to tried pop view controller, then it gives me warning like :
@IBAction func goBackToIntroView(_ sender: UIButton) {
self.navigationController?.popViewController(animated: true)
}
>> Expression of type 'UIViewController?' is unused
It is working fine in swift 2.x, So my question is how to pop view controller in swift 3.0 ? Is there any different method to pop view controller or developer have to store return value in any variable for posing view controller ?
If anyone know, then please suggest me.