title: Parse.com UIRemoteNotificationType Deprecated
body: <p>Following the Parse.com tutorial for push notifications, I put this Swift code into my application didFinishLaunchingWithOptions method:</p>
  <pre><code>        // Register for Push Notitications
      if application.applicationState != UIApplicationState.Background {
          // Track an app open here if we launch with a push, unless
          // &quot;content_available&quot; was used to trigger a background push (introduced in iOS 7).
          // In that case, we skip tracking here to avoid double counting the app-open.
          
          let preBackgroundPush = !application.respondsToSelector(&quot;backgroundRefreshStatus&quot;)
          let oldPushHandlerOnly = !self.respondsToSelector(&quot;application:didReceiveRemoteNotification:fetchCompletionHandler:&quot;)
          var pushPayload = false
          if let options = launchOptions {
              pushPayload = options[UIApplicationLaunchOptionsRemoteNotificationKey] != nil
          }
          if (preBackgroundPush || oldPushHandlerOnly || pushPayload) {
              PFAnalytics.trackAppOpenedWithLaunchOptions(launchOptions)
          }
      }
      if application.respondsToSelector(&quot;registerUserNotificationSettings:&quot;) {
          let userNotificationTypes = UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound
          let settings = UIUserNotificationSettings(forTypes: userNotificationTypes, categories: nil)
          application.registerUserNotificationSettings(settings)
          application.registerForRemoteNotifications()
      } else {
          let types = UIRemoteNotificationType.Badge | UIRemoteNotificationType.Alert | UIRemoteNotificationType.Sound
          application.registerForRemoteNotificationTypes(types)
      }
  </code></pre>
  <p>I'm getting these two warnings:</p>
  <blockquote>
  <p>'UIRemoteNotificationType' was deprecated in iOS version 8.0: Use UIUserNotificationType for user notifications and registerForRemoteNotifications for receiving remote notifications instead.</p>
  <p>'registerForRemoteNotificationsTypes' was deprecated in iOS version 8.0: Please use registerForRemoteNotifications and registerUserNotificationSettings: instead</p>
  </blockquote>
  <p>Can I simply just swap out what it's telling me to?</p>