我有alertController
:
let alertController = UIAlertController(title: "Success", message: "Your book has been uploaded", preferredStyle: .alert)
let PostBook = UIAlertAction(title: "OK", style: .cancel, handler: { action in self.performSegue(withIdentifier: "PostBook", sender: nil)})
alertController.addAction(PostBook)
self.present(alertController, animated: true, completion: nil)
print("Posted to Firebase. ")
在UIAlertAction
中,我有一个行动要塞,每次我发出声音,它都会在标签栏中显示出来。标签栏仍然存在,它只是白色,我不想要。 segue是一个show segue。