I have a very simple example of what I would like to do
private var data = [String: [[String: String]]]() override func viewDidLoad() { super.viewDidLoad() let dict = ["Key": "Value"] data["Blah"] = [dict, dict] } @IBAction func buttonTap(sender: AnyObject) { let array = data["Blah"] let dict = array[0]
Basically, I have a dictionary whose values ββcontain an array of dictionaries [String: String]. I enter data into it, but when I go to access the data, I get this error:
Cannot tune value of type '[[[String: String])]?' with an index of type 'Int'
Please let me know what I am doing wrong.
source share