title: UIScrollViewDelegate not working
body: <p>Hello I'm trying to trigger a function when the user is scrolling the app. </p>
  
  <p>Here is my code</p>
  
  <p>I defined a class MyViewController which implements the UIScrollViewDelegate </p>
  
  <pre><code>@interface CircleViewController : UIViewController &lt;UIScrollViewDelegate&gt; {
    UIScrollView *scroll;
  }
  
  @property (retain, nonatomic) UIScrollView * scroll;
  
  @end
  </code></pre>
  
  <p>Then, in the .m, in the ViewDidLoad I wrote :</p>
  
  <pre><code>- (void)viewDidLoad {
  [super viewDidLoad];
  self.scroll = [[UIScrollView alloc] init];
  scroll.delegate = self;
  [scroll setBackgroundColor:[UIColor whiteColor]];
  
  NSInteger nbView = 3;
  
  
  scroll = [[UIScrollView alloc] initWithFrame:CGRectMake(0,0,self.view.frame.size.width, self.view.frame.size.height)];
  
  for(int i = 0; i &lt; nbView; i++) {
      CGFloat xOrigin = i * self.view.frame.size.height;
  
      UIView * vue = [[UIView alloc] initWithFrame:CGRectMake(0, xOrigin,     self.view.frame.size.width, self.view.frame.size.height)];
      vue.backgroundColor = [UIColor colorWithRed:0.5/i green:0.5 blue:0.5 alpha:1];
      [scroll addSubview:vue];
      [vue release];
  
  }
  scroll.contentSize = CGSizeMake(self.view.frame.size.width,   self.view.frame.size.height * nbView);
  [scroll setScrollEnabled:YES];
  [self.view addSubview:scroll];  
  </code></pre>
  
  <p>And I define the trigger : </p>
  
  <pre><code>-(void)scrollViewDidScroll:(UIScrollView *)scrollView {
      NSLog(@"test");
  } 
  </code></pre>
  
  <p>When I run the app, I am able to scroll, but the scrollViewDidScroll never gets called.</p>