title: Change UISwitch value without triggering event
body: <p>I'm trying to change the value of a <code>UISwitch</code> based on whether you have enabled location services. I'm setting the target event in the <code>ViewDidLoad</code> method, but because you could close the app the load it back up from the background, I'm changing the value of <code>UISwitch</code> in the <code>ViewDidAppear</code>:</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
  
      [self.cell2Switch addTarget:self action:@selector(switchValueChanged:) forControlEvents:UIControlEventValueChanged];
  
      ...
  
  }
  
  - (void)viewDidAppear:(BOOL)animated
  {
      [super viewDidAppear:animated];
  
      if(![AppDelegate sharedAppDelegate].locationServicesEnabled &amp;&amp; self.cell2Switch.on)
      {
          self.cell2Switch.userInteractionEnabled = NO;
          [self.cell2Switch setOn:NO];
      }
  }
  </code></pre>
  
  <p>When I change the value, it triggers the target event I assigned in the <code>ViewDidLoad</code>.</p>
  
  <p>Is there a way I can change the value of the <code>UISwitch</code> without it automatically triggering the event?</p>