【发布时间】:2016-07-29 03:42:37
【问题描述】:
我正在使用扩展UITabBarController 的类。我需要设置班级的self.tabBarController.selectedIndex 属性才能切换选项卡。
由于我想设置此变量/调用从另一个类更改此变量的方法,因此我必须有一个名为 TabsController 的自定义类的实例
到目前为止,我已经看过这两个帖子,但它们涉及使用情节提要,而且我几乎所有事情都以编程方式完成,事实上这是我的整个情节提要:
如何以编程方式解决此问题?
Get Instance Of ViewController From AppDelegate In Swift
Access the instance of a Viewcontroller from another in swift
【问题讨论】:
标签: ios swift uiviewcontroller