title: ios 8 - scroll does not work
body: <p>I am using <code>UIScrollView</code> . At run time I am adding <code>UIButton</code> into <code>scrollview</code>. In iOS 7 it work perfectly but in iOS 8 I am getting problem on scrolling (it is very hard to scroll )..</p>
  
  <p>Here is my code . Please suggest me What am I doing wrong or in iOS 8 is there any  new property? .</p>
  
  <pre><code>-(void)renderAllCatealogue:(NSArray *)catalogueArr
  {
    [[scollViewCatlog subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)];
    int x=0;
    for (NSDictionary *dict in catalogueArr)
     {
      UIView *view =[[UIView alloc]initWithFrame:CGRectMake(x, 8, 1, 16)];
      [view setBackgroundColor:[UIColor whiteColor]];
      [scollViewCatlog addSubview: view];
  
      //calculate width
      UIFont *font=[UIFont fontWithName:BOLD_FONT size:15];
      CGFloat width=[[CommonUISetting sharedInstance]widthOfString:[dict valueForKey:@"catalogTitle"] withFont:font];
  
      UIButton * btn =[UIButton buttonWithType:UIButtonTypeCustom];
      [btn setFrame:CGRectMake(x+10, 1, width, 30)];
      [btn setTitle:[dict valueForKey:@"catalogTitle"] forState:UIControlStateNormal];
  
      [btn setTag:[[dict valueForKey:@"catalogId"] integerValue]];
      [btn.titleLabel setFont:font];
      [btn addTarget:self action:@selector(catlogBtnClicked:) forControlEvents:UIControlEventTouchUpInside];
      [btn.titleLabel setFont:[UIFont fontWithName:BOLD_FONT size:15]];
      [btn setTitleColor:[UIColor lightGrayColor] forState:UIControlStateNormal];
  
      [scollViewCatlog addSubview:btn];
       x=x+width +15;
  
  }
  [scollViewCatlog setContentSize:CGSizeMake(x, 1)];
  }
  </code></pre>