我想使用当前的segue在视图控制器之间传递数据。但是我无法这样做。该怎么办?
func tableView(_ tableView: UITableView, didSelectRowAt
indexPath: IndexPath) {
let storyboard = UIStoryboard(name: "Main", bundle:
nil).instantiateViewController(withIdentifier:
"mainViewController") as? MainViewController
let detail = ContactsViewController()
detail.uid = userId[indexPath.row]
present(storyboard!, animated: true, completion: nil)
}