【发布时间】:2016-09-07 12:07:18
【问题描述】:
我想将一个 bool 值从视图控制器传递到标签栏控制器内的导航控制器。因为我需要根据传递的值显示不同的视图。
顺便说一句,我无法通过下面的代码传递值,
// ViewController
let navigationVC = self.storyboard?.instantiateViewControllerWithIdentifier("navigation") as! NavigationController
navigationVC.pass = true
但我无法获得价值。是不是因为 ViewController 和 NavigationController 之间有一个 tabbarcontroller?
【问题讨论】:
-
情节提要如何:[TabBarController[[ViewController1]->[NavigationController]],[ViewController2][ViewController3]] ?
标签: ios swift viewcontroller navigationcontroller tabbarcontroller