title: How to use barometer of iPhone6 with new APIs available in iOS 8?
body: <p>I am looking for, how to use barometer apis which are available in iOS 8 for iPhone6.</p>
  
  <p>I have used following code </p>
  
  <pre><code>if([CMAltimeter isRelativeAltitudeAvailable]){
      CMAltimeter *altimeter = [[CMAltimeter alloc] init];
      [altimeter startRelativeAltitudeUpdatesToQueue:queue withHandler:^(CMAltitudeData *altitudeData, NSError *error) {
  
          if(error)
              [label setText:[NSString stringWithFormat:@"%@",error.localizedDescription]];
          else
              [label setText:[NSString stringWithFormat:@"%@",altitudeData.relativeAltitude]];
  
      }];
  }
  else{
      [label setText:@"That's not iPhone 6 for sure ;)"];
  }
  </code></pre>
  
  <p>But its not working even not returning any error value. It seems like completion block is not working coz my label is not updating. I am testing it on my iPhone 6.</p>