Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Cant open inbox: Ribbit app

while working on the ribbit app, i have gotten to the point of signing up a user. i tried and found that the sign up works but i can not go on the inbox as it is suppose to. the app crashes as soon as it tries to load that screen and it breaks at: UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath]; this is in the InboxTableViewController under the method:

  • (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath

here is the error i received from Xcode: 2014-02-08 12:43:59.501 Ribbit[7641:70b] *** Assertion failure in -[UITableView dequeueReusableCellWithIdentifier:forIndexPath:], /SourceCache/UIKit_Sim/UIKit-2903.23/UITableView.m:5261

3 Answers

I relized that the line before said: static NSString *CellIdentifier = @"Cell"; the problem with this is that the 'c' in CellIdentifier was capital by changing that to lower case it fixed the entire issue

I'm not sure, but check that you set a value for the cell identifier. Click at your cell and bring up the Attributes panel. If the Identifier field is empty, set it to some value (usually Apples uses Cell) and use the same value in the method.

did you set a reuse identifier for your table view cell in storyboard?

Here is a list of possible causes. I bet its your cell identifier