title: Removing a key from NSUserDefaults not working
body: <p>I have a logout function in my app. Seems to be a weird problem where it doesn't save the NSUserDefaults. Here I simply want to remove the key. However after logging out if I then open the app again it will find that this key is still in the NSUserDefaults.</p>
  
  <pre><code>func didLogout() {
      // Clear user data
      let settings = NSUserDefaults.standardUserDefaults()
      settings.removeObjectForKey("userData")
      settings.synchronize()
  
      unregisterForRemoteNotifications()
  
      openLoginScreen()
  }
  </code></pre>
  
  <p>Any ideas what I could be doing wrong here?</p>