UITableView DidSelectRowAtIndexPath?

前端 未结 5 795
余生分开走
余生分开走 2020-12-23 10:07

I have a table view with a few items (all text). When the user clicks the row I want that text in that cell to be added to an array.

How Do I grab the text out of th

5条回答
  •  暖寄归人
    2020-12-23 11:05

    My first guess would be getting the index, [indexPath row]; then fetching the data from your datasource ( an array or core data ) rather than directly from the table itself.

提交回复
热议问题