I am using UIImageView\'s with UIButtons a whole bunch. So, I created a custom class to permanently marry these two an make things a little simpler. It all works well unti
Showing how to iterate over a button's targets and create copies of the selector on another button. Specific example is just the touchupinside event, but that's usually all I use.
for (id target in button.allTargets) {
NSArray *actions = [button actionsForTarget:target
forControlEvent:UIControlEventTouchUpInside];
for (NSString *action in actions) {
[newButton addTarget:target action:NSSelectorFromString(action) forControlEvents:UIControlEventTouchUpInside];
}
}