title: Unable to deque cell with identifier title
body: <p>I am getting the following error when I press a button that opens a tableview:</p>
  
  <pre><code>Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier title - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'
  </code></pre>
  
  <p>Here is the code in the view controller for the tableview and the method that's causing the problem:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  
  NSString *CellIdentifier = [menuItems objectAtIndex:indexPath.row];
  UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
  
  return cell;
  }
  </code></pre>
  
  <p>I researched the error and I tried removing the <code>forIndexPath:indexPath</code> so the code looked like:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  
  NSString *CellIdentifier = [menuItems objectAtIndex:indexPath.row];
  UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
  
  return cell;
  }
  </code></pre>
  
  <p>Now this caused a new error:</p>
  
  <pre><code>Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:
  </code></pre>
  
  <p>now I did some logging to find out that <code>cell == nil</code> was true so I added a check for that as suggested by some earlier questions:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  
  NSString *CellIdentifier = [menuItems objectAtIndex:indexPath.row];
  UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
  if(cell == nil){
       cell = [[UITableViewCell alloc] init]
  }
  
  return cell;
  }
  </code></pre>
  
  <p>Now this removed all errors but now when I open the tableview, the cells are empty when I want the ones that I created in the storyboard.</p>
  
  <p>How do I fix this problem?</p>
  
  <p>Here is what the View Controller looks like in the storyboard: 
  <img src="https://i.stack.imgur.com/TEvog.png" alt=""></p>