I have:
- a TableViewController with several users
- a UICollectionViewController (a Chat)
I am trying to open the UICollectionViewController, when the User is clicking on one user in the TableViewController. The TableViewController should disappear, the UICollectionViewController (my Chat) should appear.
I am googling and stackoverflowing for 10 hours, but now im just desperated.
I have the following code in my TableViewController with all the users inside:
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath:
IndexPath)
{
let destination = MainChatViewController()
present(destination, animated: true)
}
I am getting the error: Thread 1: signal SIGABRT error, and I have NO idea why. I appreaciate any help - thank you
George