How can I perform a segue to a different tab in a UITabBarController when user selects a cell? [duplicate]
问题 This question already has answers here : How can I segue to the second tab of a tab bar controller from the first tab? (2 answers) Closed 2 years ago . I have a UITableViewCell in the 1st tab of a UITabBarController that contains a list of things. When the user selects a cell, I'd like it to segue to a different tab in the UITabBarController . I did it using the following code: func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) { performSegueWithIdentifier(