title: dictionary for tableView datasource
body: <p>I am trying to use a dictionary for a tableView datasource, I am getting an object back from the database that contains a key and an array of values, so a [String: [String]]</p>
  
  <pre><code>    var requestedList = [String]()
      var keyArr = [String]()
      var requestedDictionary = [String: [String]]()
  
      let tQuery = PFQuery(className: "MyClass")
          tQuery.whereKey("username", equalTo: PFUser.current()?.username as Any)
          tQuery.selectKeys(["descContent", "header"])
          do {
              let returnedObjects = try tQuery.findObjects()
              for object in returnedObjects {
                  let header = object["header"] as! String
                  keyArr.append(header)
                  if let arr = object["descContent"] as! [String]? {
                      requestedDictionary[header] = arr
                      requestedList += arr
                  }
              }
          } catch {
          }
  </code></pre>
  
  <p>I can't seem to correspond the values correctly to the rows of the tableView however, I was suggested to use an array to store the values which is what I have done with the keyArr. My problem is how do I access the contents of the keys and the corresponding values in the datasource methods?? This is what I have so far but I haven't been able to link the keys and values accordingly</p>
  
  <pre><code>    func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
          return requestedList.count
      }
  
      func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
          let cell = tableView.dequeueReusableCell(withIdentifier: "RequestViewCell", for: indexPath) as! RequestViewCell
  
          cell.descLbl.text = "Your ticket has been requested by \(requestedList[indexPath.row])"
          cell.refLbl.text = "for: \(keyArr[indexPath.row])"
  
          cell.leftBtn.tag = (indexPath.section * 100) + indexPath.row
          cell.leftBtn.addTarget(self, action: #selector(leftClick(sender:)), for: .touchUpInside)
          cell.rightBtn.tag = (indexPath.section * 100) + indexPath.row
          cell.rightBtn.addTarget(self, action: #selector(rightClick(sender:)), for: .touchUpInside)
  
          return cell
      }
  </code></pre>