Passing data from table view cell to tab view controller child via segue

I am trying to figure out how to pass data from a tapped tableview cell into a child view controller in a tab bar view controller. This is what I currently have:



override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?){

if segue.identifier == "edit"

{

let cell = sender as! UITableViewCell

let indexPath = tableView.indexPathForCell(cell)

let roomController : RoomViewController = segue.destinationViewController as! RoomViewController

let room : Rooms = frc.objectAtIndexPath(indexPath!) as! Rooms

roomController.room = room

}

}

}


I know conceptually I need to pass the data thru my tabview controller, but I'm not suer how to do this.


Thanks in advance

Passing data from table view cell to tab view controller child via segue
 
 
Q