title: Use NSUserDefaults with suiteName in Swift
body: <p>I am having a problem with <code>NSUserDefaults(suiteName: "group.app-ID")</code>.</p>
  
  <p>I try to save an <code>NSArray</code> into the <code>NSUserDefaults</code> in the container Application in <code>viewDidLoad()</code>.</p>
  
  <pre><code>var defaults: NSUserDefaults = NSUserDefaults(suiteName: "group.app-ID")
  defaults.setObject(["One", "Two"], forKey: "bookmarks")
  defaults.synchronize()
  </code></pre>
  
  <p>In my TodayExtension I try to get the array like this:</p>
  
  <p>Globaly Defenition in Extension ViewController:</p>
  
  <pre><code>var defaults: NSUserDefaults = NSUserDefaults(suiteName: "group.app-ID")
  var defaultsArray: NSArray!
  </code></pre>
  
  <p>In <code>viewDidLoad()</code></p>
  
  <pre><code>defaultsArray = defaults.objectForKey("bookmarks") as NSArray
  </code></pre>
  
  <p>But <code>defaultsArray</code> always is <code>nil</code>.</p>
  
  <p>The App Groups Entitlement has been added to all Targets.</p>