title: Not able to pass array name into table view in Swift 3
body: <p>I am relatively new to swift code. Not able to pass the text of array in plist onto table view... </p>
  
  <p>Right now I am getting an empty table view in simulator </p>
  
  <pre><code>override func viewDidLoad() {
      super.viewDidLoad()
  
  let path = Bundle.main.path(forResource: "xml", ofType: "plist")
      if let dict = NSDictionary(contentsOfFile: path!), let arrays = dict.object(forKey: "Complete") as? [String: Any] {
          self.ansTopics = arrays
          self.chapters = self.ansTopics.keys.sorted()
      }
  
  }
  override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
      return chapters.count
  }
  
  override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
      let cell = tableView.dequeueReusableCell(withIdentifier: "mainPage", for: indexPath)
      cell.textLabel?.text = chapters[indexPath.row]
      return cell
  }
  </code></pre>
  
  <p>Here is the plist file </p>
  
  <pre><code>&lt;plist version="1.0"&gt;
  &lt;dict&gt;
  &lt;key&gt;Complete&lt;/key&gt;
  &lt;dict&gt;  
  &lt;key&gt;Autonomic Nervous System&lt;/key&gt;
  &lt;array&gt;
      &lt;string&gt;Cholinergic&lt;/string&gt;
      &lt;string&gt;Anticholinergic&lt;/string&gt;
  &lt;/array&gt;
  &lt;key&gt;Peripheral Nervous System&lt;/key&gt;
  &lt;array&gt;
      &lt;string&gt;Central relaxants &lt;/string&gt;
      &lt;string&gt;Peripheral relaxants &lt;/string&gt;
  &lt;/array&gt;
  &lt;/dict&gt;
  &lt;key&gt;Chap&lt;/key&gt;
  &lt;array&gt;
  &lt;string&gt;Autonomic Nervous System&lt;/string&gt;
  &lt;string&gt;Peripheral Nervous System&lt;/string&gt;
  &lt;/array&gt;
  &lt;/dict&gt;
  &lt;/plist&gt;
  </code></pre>