Passing values from UIButton to an UIActionSheet
- by Michael
I'm trying to send an ActionSheet a variable from a button.
I can't use the tag property because its being used for something else.
I've declared myIndexRow as an instance variable and have:
NSInteger myIndexRow = indexPath.row;
[deleteButton addTarget:self action:@selector(showDeleteSheet:) forControlEvents:UIControlEventTouchUpInside];
deleteButton.myIndexRow = myIndexRow;
but I'm getting the 'Request for member 'myRow' is something not a structure or union'
There is something obvious I am missing here.