title: tableView.reloadData() is not working
body: <p>I am making an app to keep track of my homework and for some reason when I call reloadData it doesn't work, some people have already asked about this but I have tried there fixes and they don't work for me, here is the file where I add new homework:</p>
  
  <pre><code>import UIKit
  class AddHomework : UIViewController {
       @IBOutlet weak var HomeworkNameLbl: UILabel!
       @IBOutlet weak var HomeworkNameTxt: UITextField!
       @IBOutlet weak var DueDateLbl: UILabel!
       @IBOutlet weak var DueDateTxt: UITextField!
       @IBOutlet weak var DueTimeLbl: UILabel!
       @IBOutlet weak var DueTimeTxt: UITextField!
       @IBOutlet weak var AddHomeworkBtn: UIButton!
       override func viewDidLoad() {
           super.viewDidLoad()
           self.hideKeyboardWhenTappedAround()
       }
       @IBAction func AddHomework(sender: UIButton) {
           let HomeworkName = HomeworkNameTxt.text
           let DueDate = DueDateTxt.text
           let DueTime = DueTimeTxt.text
  
  
           homeworkTableView().AddObject([DueDate!, DueTime!],    HomeworkName: HomeworkName!)
  
  
  }
  func hideKeyboardWhenTappedAround() {5
      let tap: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(dismissKeyboard))
      view.addGestureRecognizer(tap)
  }
  
  func dismissKeyboard() {
      view.endEditing(true)
  }
  
  
  }
  </code></pre>
  
  <p>Here is the file where I have my tableview:</p>
  
  <pre><code>     import UIKit
       class homeworkTableView: UIViewController, UITableViewDelegate,    UITableViewDataSource{
  @IBOutlet weak var tableView: UITableView!
  override func viewDidLoad() {
      super.viewDidLoad()
      self.tableView.reloadData()
  }
  var homework : [String: [String]] = [
      "Spanish Test": ["Aug 12", "12:00 AM", "Spanish"],
      "Math Sheet": ["Aug 13", "10:30 PM","Math"],
      "Code Thing": ["Aug 11","12:00 AM","Coding"]
  
  ]
  
  
  var titles = [
      "Spanish Test", "Math Sheet", "Code Thing"
  ]
  
  func AddObject(newArray: [String], HomeworkName: String){
      titles.append(HomeworkName)
      homework.updateValue(newArray, forKey: HomeworkName)
  
      print(homework)
      print(titles)
  }
  
  
   func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
      return titles.count
  }
  
   func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
      let Cell = tableView.dequeueReusableCellWithIdentifier("cell", forIndexPath: indexPath) as! CustomCell
  
      Cell.Title.text = titles[indexPath.row]
      let currentTitle = titles[indexPath.row]
      let current = homework[currentTitle]!
      Cell.DueDate.text = "Due Date: \(current[0])"
      Cell.Class.text = "Due Time: \(current[1])"
  
      self.tableView.rowHeight = 100.00
  
      return Cell
  }
  
  }
  </code></pre>
  
  <p>And the whole project is posted on git here:
  <a href="https://github.com/IndyBob2019/HomeworkHelper" rel="nofollow">https://github.com/IndyBob2019/HomeworkHelper</a></p>
  
  <p>Any help is much appreciated, thanks!</p>