iPhone - how to pass an object to a button action
- by Mike
I have to pass an object to an button's action... something like
[myButton addTarget:self action:@selector(sendIt:MY_OBJECT) forControlEvents:UIControlEventTouchDown];
I cannot set a variable and use that on the method because I am on a static class.
How do I do that?
thanks for any help.