1

I have a spreadsheet view I added a UIButton in each cell of spreadsheet I want to get the row and column value on click action of that button .

iBug
  • 2,334
  • 3
  • 32
  • 65
Fortinoh
  • 104
  • 1
  • 7

1 Answers1

2

To handle this, Usually I create a subclass of UIButton and set property of NSInteger row and NSInteger column.

@interface TableButton : UIButton
@property (nonatomic, assign) NSInteger row;
@property (nonatomic, assign) NSInteger column;
@end
Ryan
  • 4,799
  • 1
  • 29
  • 56