title: Registering for Push Notifications in Xcode 8/Swift 3.0?
body: <p>I'm trying to get my app working in <strong>Xcode 8.0</strong>, and am running into an error. I know this code worked fine in previous versions of swift, but I'm assuming the code for this is changed in the new version. Here's the code I'm trying to run:</p>
  
  <pre><code>let settings = UIUserNotificationSettings(forTypes: [.Sound, .Alert, .Badge], categories: nil)     
  UIApplication.sharedApplication().registerUserNotificationSettings(settings)
  UIApplication.shared().registerForRemoteNotifications()
  </code></pre>
  
  <p>The error that I'm getting is "Argument labels '(forTypes:, categories:)' do not match any available overloads"</p>
  
  <p>Is there a different command that I could try to get this working?</p>