title: masterView does not always show/hide properly
body: <p>I have a splitViewController. This is in Detail VC</p>
  
  <pre><code>-(void)viewDidLoad
  {
      self.masterIsVisible = YES;
      //a botton in navigation bar to hide or show the master view.
      [button addTarget:self action:@selector(showOrHideMasterView)
      forControlEventsTouchUpInside]
      //gesture control to swipe right or left to slide master view in and out.
      [swiperight addTarget:self action:@selector(showMasterView)];
      [swipLeft addTarget:self action:@selector(hideMasterView)];
  }
  
  -(void)showOrHideMasterView
  {
  if (self.masterIsVisible)
      [self hidemasterView]; self.masterIsVisible = NO;
  else
      [self showMasterView]; self.masterIsVisible = YES;
  }
  
  -(void)hideMasterView
  {
      //hides master view by substracting masterview's width from its origin.x
  }
  
  -(void)showMasterView
  {
      //shows master View by adding masterview's width to its origin.x
  }
  - (BOOL)splitViewController:(UISplitViewController *)svc shouldHideViewController:     (UIViewController *)vc inOrientation:(UIInterfaceOrientation)orientation
  {
      return NO;
  }
  </code></pre>
  
  <p>Everything almost works as intended.
  Problem: In one orientation &amp;&amp; master is NOT visible.. then device changes orientation.. the master View instead of sliding off the screen pushed the detail view the other way. I know thats because the flag now is set as masterIsVisible = NO instead of YES. What can I do to change the flag to YES on device rotation. looks trivial but cant seem to figure out.</p>
  
  <p>I tried registering for devicechnagenotification in UIDevice but that did not work. The BOOL is YES in any Orientation. The apple example uses this but looks like thats not the right approach here. </p>