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
Cavan Biggs
25,212 PointsWTF is going on with the Ribbit App course. Out of date?
I keep getting the following warnings: Potentially incomplete method implementation. and MainStoryboard.storyboard: warning: Unsupported Configuration: Prototype table cells must have reuse identifiers.
I've looked through the forum for a solution, looking at the screen shots I notice I do not have these options to change an identifier, all I see under identity is Restoration ID and Storyboard ID nothing that says "identifier". I have even deleted the project and downloaded the project files a few stages ahead and I still have the same warnings showing up
3 Answers
Stone Preston
42,016 Pointsto fix it just click on the prototype cell in your storyboard and give it an identifier. make sure you have the cell selected (the entire cell will be shaded blue) then open the attributes inspector and fill in the identifier attribute. give it an identifier of Cell
Xcode didnt used to warn you about this, which is why it may not be showing up in the videos
for the incomplete method implementation there is probably a #warning line above the method to let you know you need to finish implementing it. you can remove the line that starts with #warning and it will go away
Cavan Biggs
25,212 PointsI'll try this out tomorrow after work, thanks for your help it's appreciated.
Stephen Whitfield
16,771 PointsThe "potentially incomplete method" may have something that's required that you're leaving out. Can you post the code for that method?
Cavan Biggs
25,212 Points//
// InboxViewController.m
// Ribbit
//
// Copyright (c) 2013 Treehouse. All rights reserved.
//
#import "InboxViewController.h"
@interface InboxViewController ()
@end
@implementation InboxViewController
- (void)viewDidLoad
{
[super viewDidLoad];
[self performSegueWithIdentifier:@"showLogin" sender:self];
}
#pragma mark - Table view data source
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
#warning Potentially incomplete method implementation.
// Return the number of sections.
return 0;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
#warning Incomplete method implementation.
// Return the number of rows in the section.
return 0;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
// Configure the cell...
return cell;
}
#pragma mark - Table view delegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
// Navigation logic may go here. Create and push another view controller.
/*
<#DetailViewController#> *detailViewController = [[<#DetailViewController#> alloc] initWithNibName:@"<#Nib name#>" bundle:nil];
// ...
// Pass the selected object to the new view controller.
[self.navigationController pushViewController:detailViewController animated:YES];
*/
}
@end
Stone Preston
42,016 Pointsremoving the lines that say #warning Incomplete method implementation. will stop those warnings from appearing
Cavan Biggs
25,212 PointsCavan Biggs
25,212 Pointsnow I'm thinking these warnings are fixed as you go through the project. It's just frustrating when you have very limited time to work on this stuff.