ios - Edit datasource of UITableView from a custom UITableViewCell -


i apologize if question have been answered. tried couldn't find answer.

i want edit "rating:int" value custom uitableviewcell. itableview it's data 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 table has 2 buttons increase or decrease rating value in post object "var tabledata:array< post > = array < post >()". however, cannot figure out how access post object in

@ibaction func decreaserating(_ sender: any) { 

i not trying access cell, var tabledata:array< post > = array < post >() sourcing tableview.

any advice , appreciated.


Comments

Popular posts from this blog

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -

angular - DownloadURL return null in below code -