title: NSUserDefaults in iOS Playground
body: <p>There seems to be a strange issue with iOS Playgrounds where <code>NSUserDefaults</code> always returns<code>nil</code> instead of the actual value.</p>
  
  <p>In an iOS Playground the last line wrongly returns <code>nil</code>.</p>
  
  <pre><code>import UIKit
  
  let defaults = NSUserDefaults.standardUserDefaults()
  defaults.setObject("This is a test", forKey: "name")
  let readString = defaults.objectForKey("name")
  </code></pre>
  
  <p>In an OSX Playground the last line correctly returns "This is a test".</p>
  
  <pre><code>import Cocoa
  
  let defaults = NSUserDefaults.standardUserDefaults()
  defaults.setObject("This is a test", forKey: "name")
  let readString = defaults.objectForKey("name")
  </code></pre>
  
  <p>Any idea why this is? Bug?</p>