title: iOS: Add subview with a fix position on screen
body: <p>How do I fix a subviews position on screen (especially in UIScrollView and UITableView)? I think in storyboard</p>
  
  <pre><code>[self.view addSubview:aSubView];
  </code></pre>
  
  <p>does not work anymore.</p>
  
  <p>Any ideas?</p>
  
  <p><strong>EDIT #1</strong>: I am using a UITableViewController, not a simple UITableView.</p>
  
  <p><strong>EDIT #2</strong>:</p>
  
  <pre><code>CGRect fixedFrame = self.menuViewRelative.frame;
  fixedFrame.origin.y = 0 + scrollView.contentOffset.y;
  self.menuViewRelative.frame = fixedFrame;
  
  menuViewRelative = [[UIView alloc] init];
  menuViewRelative.backgroundColor = [UIColor grayColor];
  menuViewRelative.frame = CGRectMake(0.0, 0.0, 320.0, 50.0);
  
  [self.view addSubview:self.menuViewRelative];
  </code></pre>