title: CMMotionActivityManager authorization status
body: <p>I'm trying to figure out a way to handle the authorization statuses for Motion activity</p>
  
  <p>Here's what I came up with so far : </p>
  
  <pre><code>manager = CMMotionActivityManager() 
  
  manager.queryActivityStartingFromDate(now, toDate: now, toQueue: NSOperationQueue.mainQueue(), 
                                                  withHandler: { (activities: [CMMotionActivity]?, error: NSError?) -&gt; Void in                
  
      if(error != nil){
          if(error!.code != Int(CMErrorMotionActivityNotAuthorized.rawValue)){
              print("CMErrorMotionActivityNotAuthorized")
          }else if(error!.code != Int(CMErrorMotionActivityNotEntitled.rawValue)){
              print("CMErrorMotionActivityNotEntitled")
          }else if(error!.code != Int(CMErrorMotionActivityNotAvailable.rawValue)){
              print("CMErrorMotionActivityNotAvailable")
          }
      }
  })
  </code></pre>
  
  <h3>One problem though :</h3>
  
  <p>When I deny the app permission to motion activity (via <code>settings</code>), I get <code>CMErrorMotionActivityNotEntitled</code> </p>
  
  <p>(I believe I should be getting <code>CMErrorMotionActivityNotAuthorized</code> instead)</p>
  
  <p>Any ideas why ? or at least what's the proper way of doing this ? </p>