title: -[UIViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x7ff437517770
body: <p>I don't quite understand this error or why I am receiving it. I have had a look at a couple other SO questions on this and have tinkered with my storyboard in attempt to fix the issue, but have had no success. Here is my code: </p>
  
  <pre><code>class Home: UIViewController, UITableViewDataSource, UITableViewDelegate {
  
  
      var images = [String]()
      var names = [String]()
  
      func getNames(array: inout Array&lt;String&gt;){
          for dict in State.event {
              array.append(dict["name"] as! String)
          }
      }
  
      func getImages(array: inout Array&lt;String&gt;){
          for dict in State.event {
              let cover = dict["cover"] as! NSDictionary
              let pictureURL = cover["source"] as! String
  
              array.append(pictureURL)
          }
      }
  
      func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
          return State.token.count
      }
  
      func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
          getNames(array: &amp;names)
          getImages(array: &amp;images)
          let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath) as! TableViewCell
  
          let url = URL(string: images[indexPath.row])
          let imageData = try? Data(contentsOf: url!)
          cell.eventImage.image = UIImage(data: imageData!)
          cell.eventName.text = names[indexPath.row]
  
          return cell
      }    
  
  }
  </code></pre>
  
  <p>error: -[UIViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x7ff437517770</p>