Note that there are some explanatory texts on larger screens.

plurals
  1. POtable view calling an error when passing data xcode
    primarykey
    data
    text
    <p>I have been following a <a href="http://www.raywenderlich.com/12865/how-to-make-a-simple-playing-card-game-with-multiplayer-and-bluetooth-part-2" rel="nofollow">tutorial</a></p> <p>It uses calls to change to table view which I do not want to use and have not added this but when it comes to this point </p> <pre><code> - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"CellIdentifier"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; //if (cell == nil) cell = [[PeerCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier]; NSString *peerID = [_matchmakingServer peerIDForConnectedClientAtIndex:indexPath.row]; cell.textLabel.text = [_matchmakingServer displayNameForPeerID:peerID]; return cell; } </code></pre> <p>I blanked out the if statement as this is where it will set the format for the data and now when you return cell it throws up an exception </p> <p>Anyone got any ideas why?</p> <p>Error Message...</p> <blockquote> <blockquote> <p>Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:], /SourceCache/UIKit/UIKit-2380.17/UITableView.m:5471 2013-05-29 21:11:28.967 Iphone_controller[2485:907] <em>*</em> Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'</p> </blockquote> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload