我试图找出如何将数据从tapped tableview单元格传递到标签栏视图控制器中的子视图控制器。这就是我目前所拥有的:
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
}
}
}