-2

For example, there are 4 labels in a cell. when the user click on one of them. is there any ways to recognise which label is he clicking on?

if yes, by what function that can i get the text value of that labels?

raymond
  • 3
  • 6

2 Answers2

0

You can add tap gesture on the labels. Here is Reference and Guide

0

This question is for button. Same rule apply to label.

1) In your cellForRowAtIndexPath: method, assign label tag as index

2) Add target Action for label

Community
  • 1
  • 1
Goddard
  • 803
  • 5
  • 11