UIAlertController删除segue上的tabbar

时间:2017-06-20 04:20:12

标签: ios swift uialertcontroller

我有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。

在segue之前

enter image description here

在segue之后

enter image description here

1 个答案:

答案 0 :(得分:1)

将[{1}}嵌入navigationController,以便所有的细分都通过view

enter image description here

第二视图控制器:
enter image description here