Passing values from UIButton to an UIActionSheet
Posted
by Michael
on Stack Overflow
See other posts from Stack Overflow
or by Michael
Published on 2010-04-19T18:26:10Z
Indexed on
2010/04/19
18:43 UTC
Read the original article
Hit count: 270
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.
© Stack Overflow or respective owner