答案 0 :(得分:1)
首先,在StoryBoard init中根据您的需求进行细分。然后,代码如下:
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
tableView.deselectRowAtIndexPath(indexPath, animated: true)
if indexPath.row == 0{
performSegueWithIdentifier("showA", sender: indexPath.row)
}else {
performSegueWithIdentifier("showB", sender: indexPath.row)
}
}