📅  最后修改于: 2022-03-11 15:01:01.787000             🧑  作者: Mango
@IBAction func goBackToIntroView(_ sender: UIButton) {
self.navigationController?.popViewController(animated: true)
}
// popViewController(animated:) returnsUIViewController?
// , and the compiler is giving that warning since you aren't capturing the value. The solution is to assign it to an underscore:
// Answer
_ = navigationController?.popViewController(animated: true)