我一直在搜寻网络以及任何我可以找到的论坛,而我一生中都找不到这个问题。 当我尝试将注销按钮添加到Facebook时,此操作已经开始,但是即使我注释掉它也无法运行。 这是注销的代码:
alert.addAction(UIAlertAction(title: "Nope", style: UIAlertAction.Style.default, handler: nil))
let cancelAction = UIAlertAction(title: "Yes", style: UIAlertAction.Style.destructive) {
UIAlertAction in
self.FaceBLoginManager.logOut()
self.navigationController?.pushViewController(self.vc, animated: true)
}