title: How do i dequeue a cell in swift?
body: <p>'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier eventCell  - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'</p>
  
  <p>heres the code </p>
  
  <pre><code>override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {// this sets the title and subtitle to the Title and Location in the given EventPlan
      let cell = tableView.dequeueReusableCell(withIdentifier: "eventCell ", for: indexPath) as UITableViewCell
  
      cell.textLabel?.text = eventsArray[indexPath.row].title
      cell.detailTextLabel?.text = eventsArray[indexPath.row].location
  
      return cell        
  }
  
  
  // here's my code for eventplan
  class EventPlan : NSObject {
      var title:String
      var location:String
  
      init(tits: String, locs: String){
          self.title = tits
          self.location = locs
      }       
  }
  
  let event = EventPlan(tits: "Wise BDAY", locs: "UVA-Wise")
  </code></pre>
  
  <p>
  I know that im supposed to label the cell identifier as eventCell in my main story board but i still get the error. am  i not connecting it correctly?</p>