The touches
set contains instances of UITouch
objects. Use the touch.view
property to determine the view object in which the touch originally occurred. Once you have that reference, you can get that view's tag value.
But do consider making these UIButton
instances as Jamie mentions in the comments.