I have the following array of arrays ::
<array>
<dict>
<key>aa</key>
<string>2012-07-19 11:16:00</string>
</dict>
<dict>
<key>bb</key>
<string>2012-07-19 11:16:02</string>
</dict>
<dict>
<key>cc</key>
<string>2012-07-19 11:16:05</string>
</dict>
</array>
The name of this array is abcd and it is NSMutable.
I want to add a new dict element into this array, say with key value of aa and some other string value. I want to check if this new key value already exists as a key for some dict element. How can I do that ?? Can someone help me out ?? Thanks and Regards.
Say arr is your
NSMutableArrayand dictToBeAdded is your dictionary to be added. And let strKey is the key for this dictionary :