title: UIScrollView not bouncing vertical when scrolled to top
body: <p>i have a weird issue with a <code>UIScrollView</code> and a <code>UIWebView</code> in it.
  First my setup:</p>
  
  <p>I subclassed a UIView and added the following code to it:</p>
  
  <hr>
  
  <p><strong>.h</strong></p>
  
  <pre><code>@interface MySubclassedView : UIView {
      UIScrollView *scrollView;
      UIWebView *contentView;
  }
  
  @property(nonatomic,retain) UIWebView *contentView;
  </code></pre>
  
  <hr>
  
  <p><strong>.m</strong></p>
  
  <pre><code>- (id)initWithFrame:(CGRect)frame {
      self = [super initWithFrame:frame];
      if (self) {
          self.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
          [self setupContentView];
      }
      return self;
  }
  </code></pre>
  
  <hr>
  
  <p><strong>setupContentView</strong></p>
  
  <pre><code>-(void)setupContentView {
  
      // Content View
      self.contentView = [[UIWebView alloc] init];
      self.contentView.backgroundColor = [UIColor whiteColor];
  
      // ScrollView
      scrollView = [[UIScrollView alloc] init];
      scrollView.backgroundColor = [UIColor whiteColor];
      scrollView.alwaysBounceVertical = YES;
      [scrollView addSubview:self.contentView];
      [self addSubview:scrollView];
  }
  </code></pre>
  
  <hr>
  
  <p><strong>and my layoutSubViews</strong></p>
  
  <pre><code>- (void)layoutSubviews {
      XLog(""); // something like NSLog
      [super layoutSubviews];
      scrollView.frame = CGRectMake(0,0, self.width, self.height);
      self.contentView.frame = CGRectMake(0,0, self.width, self.height);
  }
  </code></pre>
  
  <p>The Problem with all of this is, that it bounces the first time when my scrollview is not completely scrolled to the top. after the scrollview is scrolled to top or bottom i cannot drag the view downwards but the <code>layoutSubviews</code> method gets called on and on as long as i'm dragging.</p>
  
  <p>For better understanding i made a short screen video to demonstrate the behavior: <a href="http://www.screenr.com/Gy9" rel="nofollow">http://www.screenr.com/Gy9</a></p>
  
  <p>thanks for all help. if something is unclear, please let me know in the comments.</p>