- (IBAction)swipe:(UISwipeGestureRecognizer *)sender
{
if (sender.view == view1) {
//do something
}
if (sender.view == view2) {
//do something
}
if (sender.view == view3) {
//do something
}
}
Don't complicate what is simple. Besides, using tags will force you to define the same tags in another nib if you want to reuse the same controller with another nib, that is bad design.