title: Scroll to top when tapping the status bar
body: <p>I got a view controller (lets call it <code>MainViewContoller</code>) that's present 3 different tables (one in a time), user  can tap a segment control to switch between those tables.</p>
  
  <p>To present those 3 tables, <code>MainViewContoller</code> has 3 other view controllers (A, B and C), each has a <code>UITableView</code> as a subview and handle it's own data.<br>
  When a <code>MainViewContoller</code> is loaded, it initiate controllers A, B and C, and add their tableViews to it's view:  </p>
  
  <pre><code>- (void)viewDidLoad {
      [super viewDidLoad];
  
      ViewControllerA *vcA = [ViewControllerA alloc] init];
      [self.view addSubview:vcA.view];
  
      ViewControllerB *vcB = [ViewControllerB alloc] init];
      [self.view addSubview:vcB.view];
  
      ViewControllerC *vcC = [ViewControllerC alloc] init];
      [self.view addSubview:vcC.view];
  }
  </code></pre>
  
  <p>So for example when user tap the segment control and choose A, the <code>MainViewContoller</code> hide tables B and C, and unhide table A.  Something like this:  </p>
  
  <pre><code>if (userTapOnA) {
      self.viewControllerA.tableView.hidden = NO;
      self.viewControllerB.tableView.hidden = YES;
      self.viewControllerC.tableView.hidden = YES;
  }  
  </code></pre>
  
  <p><strong>The problem:</strong></p>
  
  <p>When user tap the status bar I want that the current visible table will scroll to top.<br>
  This behavior is pretty basic and one gets it for free when using a regular view controller, but as you can see my view controller is not regular.<br>
  I suppose that by using other controllers view as <code>MainViewContoller</code> view I break the default behavior, so my <code>MainViewContoller</code> doesn't handle the status bar tap.  </p>
  
  <p>Someone got an idea how to solve that? </p>