You will get all the buttons from the subviews property
for (UIButton *eachBtn in [gridScrollView subviews]) {
if ([eachBtn isKindOfClass:[UIButton class]]) {
NSLog(@"Button Tag : %i",eachBtn.tag);
}
}
If you want to pass a button's tag then set the same tag to gesture
longPress.view.tag = btn.tag
After that In your long press handler method take this tag
NSLog(@"Button Tag : %i",longPress.view.tag);