title: Populating TableView with multiple sections and multiple dictionary in an array in Swift
body: <p>I have a 3 category which I was using as a section. In that section I have to populate data which is in array of dictionary. Here is my code:-</p>
  
  <pre><code>var sections = [Category A, Category B, Category C]
  var itemsA = [["Item": "item A","ItemId" : "1"],["Item": "item B","ItemId" : "2"],["Item": "item C","ItemId" : "3"]]
  var itemsB = [["Item": "item A","ItemId" : "1"],["Item": "item B","ItemId" : "2"],["Item": "item C","ItemId" : "3"]]
  var itemsC = [["Item": "item A","ItemId" : "1"],["Item": "item B","ItemId" : "2"],["Item": "item C","ItemId" : "3"]]
  
  func numberOfSections(in tableView: UITableView) -&gt; Int {
      return self.sections.count
  }
  
  func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -&gt; String? {
      return self.sections[section]
  }
  
  func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
      return ??
  }
  
  func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
      let cell = tableView.dequeueReusableCell(withIdentifier: "StoreCell") as! UITableViewCell
      ????
      ????
      return cell
  }
  </code></pre>
  
  <p>The items array I need to populate into table category wise. If anyone can answer. Thank you!</p>