title: UITableview not placed correctly in uiscrollview
body: <p>I have a UIscrollView that uses a pagecontrol. I'm adding tables to the scrollview in code. The tableviews should have a padding of 20px on each side. So I do the following.</p>
  
  <pre><code> CGRect frame = self.scrollView.bounds;
          frame.size.width = 280.0f;
          frame.size.height = self.scrollView.bounds.size.height;
  
          frame.origin.x = (320 * page)+20;
          NSLog(@"orgin x is %d",(320 * page)+20);
          NSLog(@"orgin x is %f",frame.origin.x);
          frame.origin.y = 0;
  
  
          UITableView *tableStage = [[UITableView alloc]initWithFrame:frame];
          tableStage.backgroundColor = [UIColor colorWithRed:(250/255.0) green:(248/255.0) blue:(247/255.0) alpha:100];
          tableStage.delegate = self;
          tableStage.dataSource = self;
          tableStage.tag = page;
  
          tableStage.contentMode = UIViewContentModeScaleAspectFit;
          [self.scrollView addSubview:tableStage];
          [self.pageViews replaceObjectAtIndex:page withObject:tableStage];
  </code></pre>
  
  <p>But I'm getting the following result.
  <img src="https://i.stack.imgur.com/JKDfi.png" alt="enter image description here"></p>
  
  <p>Like you can see the next tableview is always moving something more to the left. Any idea how I can fix this?</p>