title: Access to Dictionary values inside Array in swift
body: <p>I have an array with data for my TableView sections</p>
  
  <pre><code>let menuItems : Dictionary&lt;String,Dictionary&lt;String,String&gt;&gt;[] = [
      [
          "data" : [
              "name":"test",
              "image":"test.png"
          ]
      ],
      [
          "data" : [
              "name":"test2",
              "image":"test2.png"
          ]
      ]
  ]
  </code></pre>
  
  <p>I'm trying to access it by using subscript</p>
  
  <pre><code>func tableView(tableView: UITableView!, titleForHeaderInSection section: Int) -&gt; String! {
      return menuItems[section]["data"]["name"]
  }
  </code></pre>
  
  <p>and have the error</p>
  
  <pre><code>Could not find member 'subscript'
  </code></pre>
  
  <p>I have read a lot of similar questions on stackoverflow, but still haven't understood how to fix it. I tried to unwrap with "!" symbol and used another variables - no result.</p>
  
  <p>Could you explain how does it works, please?</p>