ios - UIAlertController 删除 segue 上的标签栏

标签 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 操作,每次我进行 segue 时,它​​都会使标签栏变白。选项卡栏仍然存在,它只是把它变白了,这是我不想要的。转场是表演转场。

在转场之前: enter image description here

转场之后:enter image description here

最佳答案

navigationController 嵌入到您的 view 中,以便所有转场都通过 navigationController

enter image description here

第二个 View Controller :
enter image description here

关于ios - UIAlertController 删除 segue 上的标签栏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44643763/

相关文章:

swift - 如何让 .mlmodel 在 Swift Playground 中使用?

ios - swift 我想检查警报文本字段文本是否大于 0

ios - UIAlertView 未返回适当的值

ios - 如何在 Swift 中为多个 UIActionSheet 创建通用方法

iphone - 连续拍照时 iOS 应用程序崩溃

ios - XCode 代码设计问题

ios - CNContactViewController导航条各版本不同

ios - RubyMotion 是否与 facebook-ios-sdk 兼容?

ios - 填充 UITableView 的更快方法?

ios - View 在移动时不会发生碰撞(Swift iOS)