【发布时间】:2018-07-14 11:30:29
【问题描述】:
在 UIViewController 中:
类 ViewController2: UIViewController { 变量点 = 0 var 按下 = 假 @IBOutlet 弱变量标签:UILabel! @IBAction func滑块(_发件人:UISlider){ number = Int(sender.value) label.text = 字符串(数字) } @IBAction func submitbutton(_ sender: UIButton) { 按下=真 } }如果 UIViewController 中的按钮被按下,我会尝试在 TabBarController 中执行某些操作,并将数字添加到另一个 TabBarConroller 中的数字。
Image 1: This shows the connection between my ViewControllers.
Image 2: This shows the first two ViewControllers.)
Image 3: This shows the third and fourth ViewController
这是我的故事板。我已经用几句话来描述我在图像中尝试做的事情。如果您需要更清晰的描述,请告诉我。谢谢!
【问题讨论】:
-
我无法理解您的用例,如果您能向我们提供您想要实现的目标的更清晰描述,将会很有帮助。
标签: swift uiviewcontroller uitabbarcontroller