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

The SDK directory does not exist (ubuntu 16.04) (react native) -

python - How to clone or copy a list? -

python - How to use Celery in Tornado with redis as broker and backend? -