How to add NSDictionary to NSArray to use it in tableview <p><code>NSDictionary *recipe = arrayOfPlist[i];</code></p> <p>that I use it in a for loop</p> <p>and in a if statement I added this dictionary to an <code>NSArray</code> <code>results= [recipe allValues];</code> like this </p> <p>and I segue it like this</p> <pre><code> destViewController.filteredContent=results; </code></pre> <p>I checked it the results array is not null but when I compile it and try to go to a PageView with selected array I'm having this exception</p> <pre><code> *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[&lt;__NSCFString 0x109268e40&gt; valueForUndefinedKey:]: this class is not key value coding-compliant for the key recipeName.' </code></pre> <p><code>RecipeName</code> is a key from my Dictionary which I use it to write to cell.</p> <p>I couldn't see the problem so I came here.</p> <hr> <p>It turned out that s not my real problem. The crash happened at the next view controller which is a pageViewController. I passed the results array and it should only have 1 elements in it but when i checked it it says the count 8= number of keys in my dictionaries. It added all of the keys as a unique array element and thats where the problem happened. There is really not a recipeName ...</p> <p>how can i fix this??</p> <pre><code>&lt;plist version="1.0"&gt; &lt;array&gt; &lt;dict&gt; &lt;key&gt;category&lt;/key&gt; &lt;string&gt;desert&lt;/string&gt; &lt;key&gt;numberOfPerson&lt;/key&gt; &lt;string&gt;3&lt;/string&gt; &lt;key&gt;recipeImage&lt;/key&gt; &lt;string&gt;asdd.jpg&lt;/string&gt; &lt;key&gt;time&lt;/key&gt; &lt;string&gt;15&lt;/string&gt; &lt;key&gt;recipeName&lt;/key&gt; &lt;string&gt;Puding&lt;/string&gt; &lt;key&gt;recipeDetail&lt;/key&gt; </code></pre> <p>the count is 8 for this reason. It consider each key as an array element.</p>