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 Build a Blog Reader iPhone App Rebuilding from Scratch Adding a Table View Controller Class

Why is it different?

Hey again all. I am having trouble with my code. It looks different to the one in the video. And when I try to run it, it errors out. I tried adding what is in the video, but it just continues to error. Is this because they are different versions of Xcode?

The error is on the line: UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:<#@"reuseIdentifier"#> forIndexPath:indexPath];

In the video they have a placeholder for @"reuseIdentifier" however when I type that in it errors out again, and autofill doesn't find it....

Any help would be great as I am struggling to go any further!

3 Answers

Ryan Stevenson
Ryan Stevenson
1,799 Points

I have this... I had to amend it manually as the tutorial was out of date and Xcode generates different code when creating the class.

  • (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell" forIndexPath:indexPath];

    NSString *object = self.titlesArray[indexPath.row]; // cell.textLabel.text = object; return cell; }

Amit Bijlani are there any plans to upgrade these videos in the near future? Whilst the might add a new learning dimension, It is a slight pain haha.

Amit Bijlani
Amit Bijlani
Treehouse Guest Teacher

We are aware that the course is bit dated and there are plans to replace it but not in the immediate future because WWDC is right around the corner.

Edouard Gabaudan
Edouard Gabaudan
4,104 Points

Hi,

Were you able to find a solution in here? I can't go further either!

Thanks

You just have to edit it manually Edouard Gabaudan