title: switch.hidden = YES not working, outlets all correctly set up
body: <p>I am having a problem that is totally confounding me. Please look at the code below, it is from the book "Beginning iPhone 4 Development" chapter 4. I'm new to this :)</p>
  
  <pre><code>- (IBAction)toggleControls:(id)sender
  {
      if([sender selectedSegmentIndex] == kSwitchesSegmentIndex)
      {
          NSLog(@"Show switches");
          [self.leftSwitch setHidden:NO];
          [self.rightSwitch setHidden:NO];
          [self.doSomethingButton setHidden:YES];
      } 
      else
      {
          NSLog(@"Hide switches");
          [self.leftSwitch setHidden:YES];
          [self.rightSwitch setHidden:YES];
          [self.doSomethingButton setHidden:NO];
      }
  </code></pre>
  
  <p>}</p>
  
  <p>The strange thing is that it logs this correctly but the ui controls aren't hiding/showing.
  I also tried this (original in book):</p>
  
  <pre><code>- (IBAction)toggleControls:(id)sender
  {
      if([sender selectedSegmentIndex] == kSwitchesSegmentIndex)
      {
          NSLog(@"Show switches");
          leftSwitch.hidden = NO;
          rightSwitch.hidden = NO;
          doSomethingButton.hidden = YES;
      } 
      else
      {
          NSLog(@"Hide switches");
          leftSwitch.hidden = YES;
          rightSwitch.hidden = YES;
          doSomethingButton.hidden = NO;
      }
  }
  </code></pre>