Lenx van Zyl Lenx van Zyl - 8 days ago 6
iOS Question

Swift : [NSDictionary]()

I have data stored in a

[NSDictionary]()
here is how I add the data:

var usedObjectDictionaries = [NSDictionary]()

for firstUseItem in useItemsInFirstObject {
let dict = firstUseItem.toDictionary()
usedObjectDictionaries.append(dict)
}


And the
[NSDictionary]()
if printed out looks like this:

enter image description here

What I need to do is reach the value of the
ActivityReference1
in the
[NSDictionary]()
.
Meaning , how can I get to the
Job
.

Answer
for item in usedObjectDictionaries {
    print(item["ActivityReference1"])
}
Comments