Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Aryan Kashyap
Courses Plus Student 5,943 PointsHelp
I cant get Why is it showing wrror
#import "SuperCoolViewController.h"
@implementation SuperCoolViewController
- (void)viewDidLoad {
[super viewDidLoad];
/* Write your code below this line */
(UITableViewCell *)cellForRowAtIndexPath:(NSIndexPath *)indexPath{
[dequeueReuseableCellWithReuseIdentifier:@"Photo" forIndexPath:indexPath];
}
}
@end
2 Answers

timneuburg
22,380 PointsAryan, the challenge no longer exists, but I still think I might be able to help. The default line should not be in the viewDidLoad method, as it is a table view source method. I don't know how this ended up in there, but that is definitely what is causing the issue in this case. The easy fix would be taking the method out of the scope of the viewDidLoad function and setting it up individually as it's own method.
If you have any questions, feel free to ask.

Aryan Kashyap
Courses Plus Student 5,943 Pointsi meant error