I used the following code to init the new UIScrollView:
UIScrollView *scroll = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
scroll.showsHorizontalScrollIndicator = NO;
scroll.showsVerticalScrollIndicator = NO;
Then I added 3 UIView instance into the scrollView instance.
But When I use it's delegate method - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView and - (void)scrollViewDidScroll:(UIScrollView *)scrollView
both of them did not work, I typed a NSLog Method to catch the logs in GDB if the functions calld.
What's going on?