jjzjj

categoryviewController

全部标签

ios - 如何以编程方式使用 Swift 3 在所有 View Controller 中显示标签栏?

我是Swift的新手。如何在不使用Storyboard的情况下以编程方式在swift3中的所有ViewController中显示选项卡栏?场景如下1.我有3个带有标签栏的ViewController(例如view1、view2、view3)2.当我点击view2中的一个按钮时,它导航到另一个ViewController(比如说view4)并且在view4中标签栏没有出现我在ViewController中添加了标签栏(假设是homeView)这是我在homeView的viewDidLoad()中的代码//CreateTabonelethomeviewController=view1()l