I have a table cell view with, currently a date and title. But I want to add the current time to it as well, but I cant seem to add another section in the cell. Can someone show me how?
Here is my cellForRowAt:
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "ContactCell", for: indexPath)
let contact = userInput[indexPath.row]
cell.detailTextLabel?.numberOfLines = 3
cell.detailTextLabel?.text = contact.value(forKey:"thf") as? String
cell.textLabel?.text = contact.value(forKey:"date") as? String
return cell
}
I dont mind adding the time anywhere but preferably somewhere noticeable