I have a UIScrollView which scrolls horizontally. I have also put my own handler to do something different on a vertically scroll. This works really well but then I have added some buttons onto the UIScrollView using the following code:
UIButton *catButton = [UIButton buttonWithType:UIButtonTypeCustom];
[catButton addTarget:self action:@selector(clickCatButton:) forControlEvents: UIControlEventTouchUpInside];
the button's action gets called when clicked:
- (void) clickCatButton:(id) sender
{
[NSObject cancelPreviousPerformRequestsWithTarget:self];
}
but my problem is that since putting the buttons on the UIScrollView they take over the code that manages the vertical scroll.
I'm a bit stuck on what the best approach is to fix this.
Thanks for your help