title: CLLocationManager locationServicesEnabled ios6
body: <p>Im fairly new to Objective-C and I was trying to find a user's location. Below is what I have but there is a parse issue with <code>(![cLLocationManager locationServicesEnabled])</code>.</p>
  
  <p>I think it was deprecated for iOS6 but i cant find what to use instead.</p>
  
  <pre><code>- (void)updateLabels {
      if (location != nil) {
          self.latitudeLabel.text = [NSString stringWithFormat:@"%.8f",location.coordinate.latitude];
          self.longitudeLabel.text = [NSString stringWithFormat:@"%.8f",location.coordinate.longitude];
      } else {
          self.longitudeLabel.text = @"";
          self.latitudeLabel.text = @"";
  
          NSString *statusMessage;
          if ([lastLocationError.domain isEqualToString:kCLErrorDomain] &amp;&amp; lastLocationError.code == kCLErrorDenied) {
              statusMessage = @"Location Services Disabled";
          } else {
              statusMessage = @"Error Getting Location";
          } else if (![CLLocationManager locationServicesEnabled]) { //Problem lies here
              statusMessage = @"Location Services Disabled";
          } else if (updatingLocation) {
              statusMessage = @"Searching...";
          } else {
              statusMessage = @"Press the Button to start";
          }
  
          self.messageLabel.text = statusMessage;         
      }
  }
  </code></pre>
  
  <p>Any help will be much appreciated.</p>