I have a table view with custom cells.Inside the cell having a scroll view which scrolls horizontally.A button is added on the the table view cell.But the button is not responding with touch.Button is not added on the scroll view.On this button click,my task is to change the offset of the scroll view behind it just as a next button.How can i detect the touch?This is my code of adding contents to scroll view.

```
 for(int i=0;i<[exerciseArrayForeachSection count];i++){

        Exercise *data = [exerciseArrayForeachSection objectAtIndex:i];

        [_customCell.exTitleLabel setText:data.exName];
         if([data.exImage length] < 1){
             [[AsyncImageLoader sharedLoader] cancelLoadingURL:_customCell.exThumbImageView.imageURL];
         }
      else  if ([data.exImage length] > 0)
        {
            int intExerId = [data.exImage intValue];
            NSString *fullPathString = [NSString stringWithFormat:@"%@%d/%@",EXER_URL,intExerId,data.exImage];
            NSURL* aURL = [NSURL URLWithString:fullPathString];

            _customCell.exThumbImageView.imageURL = aURL;
            imageUrlDetails=fullPathString;
        }

     [_customCell.scroll addSubview:_customCell.excerciseDetailsView];

         _customCell.scroll.contentOffset=CGPointMake(_customCell.scroll.contentOffset.x+320, _customCell.scroll.contentOffset.y);

        }

    [_customCell addSubview:_customCell.scroll];
     [_customCell.scroll bringSubviewToFront:_customCell.nextBtn];

        }

```

Method for the button click is called from the custom cell view like:

```
-(IBAction)nextClickActn:(id)sender{
   [[self delegate]nextButtonAction:self];}

```

And in table view controller,

```
- (void)  nextButtonAction:(id)sender {

    UITableViewCell *cell = (UITableViewCell *)sender;
    _customCell=(CustomCellFor_Dashboard*)cell;

   if ( _customCell.scroll.contentOffset.x <= _customCell.scroll.contentSize.width ) {
       CGRect frame;
       frame.origin.x = _customCell.scroll.contentOffset.x +_customCell.scroll.frame.size.width;
       frame.origin.y = 0;
       frame.size = _customCell.scroll.frame.size;
       [_customCell.scroll scrollRectToVisible:frame animated:YES];
      // pageControlBeingUsed = YES;
   }

}

```