I apologize if this question have already been answered. I tried but couldn't find an answer.
I want to edit the "rating:Int" value from the custom UITableViewCell. The ITableView that get it's data from TableData show below:
class HomeViewController: UIViewController, UITableViewDataSource {
@IBOutlet weak var tableView: UITableView!
var TableData:Array< Post > = Array < Post >()
var PostTableData:Array <NSMutableDictionary> = Array <NSMutableDictionary> ()
let cellSpacingHeight: CGFloat = 5
Each cell in this table has two buttons to increase or decrease rating value in the Post object from "var TableData:Array< Post > = Array < Post >()". However, I cannot figure out how to access the Post object in the
@IBAction func decreaseRating(_ sender: Any) {
I am not trying to access the cell, but var TableData:Array< Post > = Array < Post >() that is sourcing the tableview.
Any advice and help will be appreciated.