我正在尝试在其他 Storyboard上呈现帐户 View Controller 。但是当我呈现它时,选项卡栏没有显示。
这是我在另一个 Storyboard上的代码,我希望当按下另一个 Storyboard上的按钮时,它会转到帐户 View Controller (参见图片)对不起我的英语。谢谢
let storyboard : UIStoryboard = UIStoryboard(name: "UnitedArabEmirates", bundle: nil)
let vc = storyboard.instantiateViewController(withIdentifier: "UAE")
self.present(vc, animated: true)
编辑:抱歉问错问题了。让我重新表述一下。抱歉,我是编程和 swift 新手。
这是我的第一个 Storyboard,当我点击“上传简历”时,它会转到第二个 Storyboard并显示我的 AccountViewController 或它的命名标识符为“帐户”,但当我尝试显示它时,包含的选项卡栏3 个选项卡栏项目未显示。只是导航栏。我如何呈现具有 3 个选项卡栏项目的 AccountViewController。非常感谢您的回复。
这是我的第一个 Storyboard
这是我的第二个 Storyboard
这是当我点击上传简历时显示我的 AccountViewController 的代码
let storyboard : UIStoryboard = UIStoryboard(name: "UnitedArabEmirates", bundle: nil)
let vc = storyboard.instantiateViewController(withIdentifier: "Account")
self.present(vc, animated: true)
最佳答案
let storyboard : UIStoryboard = UIStoryboard(name: "UnitedArabEmirates", bundle: nil)
let vc = storyboard.instantiateViewController(withIdentifier: "UAE")
self.navigationcontroller.present(vc, animated: true)
请尝试这个。
关于ios - 呈现一个导航栏和一个非 Root View 选项卡 Controller ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41585843/