title: Check state on more UISwitch´s at the same time
body: <p>I have a simpel  view with 5 UISwitch´s   and i want to make sure that only 4 can me set to off at the same time, how du i check more in one " if "  i tried this  and it just shows the alertview overtime i use the switch:</p>
  
  <pre><code>if (ishockeySwitch.state == NO | basketBallSwitch.state == NO | amrFootBallSwitch.state == NO | handBallSwitch.state == NO ) {
  
  
  
      UIAlertView *av = [[UIAlertView alloc] initWithTitle:@"Sofabold" message:@"Det er ikke en god ide, at fravælge alle sportsgrene." delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil];
      [av show];
  
     [ soccerSwitch setOn:YES animated:YES];
  }else {
     // ........ do some stuff ...........
  }
  </code></pre>