NSUserDefaults returns NSDictionary instead of NSArray
<p>This is how I store the NSArray:</p>

<pre><code>   let defaults = NSUserDefaults.standardUserDefaults()
    for item in data as NSArray {
        if let id = item["id"] as? String {
            defaults.setObject(item, forKey: "Content:" + id);
            defaults.synchronize();
        }
    }
</code></pre>

<p>But when I try to get the stored data, I had to use</p>

<pre><code>if let content = defaults.dictionaryForKey("Content:" + contentID) {}
</code></pre>

<p>Otherwise the content is empty. But that would be ok if there would be an simple method to get this NSDictionary into an NSArray (as it is needed in some other classes, to which the data is handed over).</p>

<p>Is there something wrong by the way I store the NSArray? BTW: its an array where the keys are Strings. Something like String:AnyObject.</p>

<p>Thanks in advance!</p>

<p>Best
Stefan</p>