title: Passing data from Tableview to child of a tabbar controller
body: <p>I have a Tableview displaying data from a core DB.
  When a row is selected I pass information to a view controller (vc) in func prepareForSugue.</p>
  
  <p>Problem is the vc I pass this information to is a child of a Tab Bar controller, and by making a segue directly to the vc I bypass this Tab Bar controller, this in turn results in the absence of a tab bar in the vc.</p>
  
  <p>My question is there anyway to pass data from a tableview to the fist child of a tab bar controller and ensure the Tab Bar hierarchy is maintained?</p>
  
  <p>Any input appreciated.</p>
  
  <p>Tableview prepare for segue:</p>
  
  <pre><code>override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
  
  
          // Get the new view controller using [segue destinationViewController].
          // Pass the selected object to the new view controller.
  
          if(segue.identifier == "ItemDetailsSegue"){
  
              //initilise new vc and cast as history view controller
              var viewcontroller = segue.destinationViewController as History;
  
              // pass the caseNumber we got from didselectRow to History property / instance var
  
              println("Passing case Number to Hisory: \(caseNumberToPAsstoHistory)");
  
              viewcontroller.caseNumberSelected = caseNumberToPAsstoHistory;
          }
      }
  </code></pre>