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 trialDylan Buckley
2,243 PointsWhy 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
1,799 PointsI 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; }
Dylan Buckley
2,243 PointsAmit 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
Treehouse Guest TeacherWe 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
4,104 PointsHi,
Were you able to find a solution in here? I can't go further either!
Thanks
Dylan Buckley
2,243 PointsYou just have to edit it manually Edouard Gabaudan