title: How to update code using enabledRemoteNotificationTypes because it is "not supported in iOS 8"?
body: <p>this is the code i used for the RemoteNotificationType:</p>
  
  <pre><code>NSUInteger rntypes = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];
  </code></pre>
  
  <p>The error i got was this:</p>
  
  <blockquote>
    <p>2014-09-29 15:46:47.416 Dummy[258:21766] enabledRemoteNotificationTypes is not supported in iOS 8.0 and later.</p>
  </blockquote>
  
  <p>Would be a great help if someone could give me the solution.</p>