I have made a table with tableCell which contain Student information. Details of students are displayed in cells. The function below displays student information based on which cell is clicked.
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
let selectedRow = feedItems[indexPath.row]
print(selectedRow)
}
On click of a cell gives the following output:
ID: Optional("101"), Name: Optional("Neha Mahendrabhai Ghala"),Std: Optional("13"), School Name: Optional("N.k. College of commerce arts and mgmt. Malad")
I want to extract the "101" next to the ID and put in a string variable. How can I go about this?