Je reçois cet avertissement.Iphone, comment puis-je corriger cet avertissement: '-respondsToSelector:' introuvable dans le (s) protocole (s)
'-respondsToSelector:' introuvable dans le protocole (s)
Il se produit sur la ligne marquée par "ICI" ci-dessous.
- (NSString *)tableView:(UITableView *)tableView
titleForFooterInSection:(NSInteger)section {
id<SetsSectionController> sectionController =
[sectionControllers objectAtIndex:section];
if ([sectionController respondsToSelector:
@selector(tableView:titleForFooterInSection:)]) { //HERE
return [sectionController tableView:tableView
titleForFooterInSection:section];
}
return nil;
}
Utilise mes fichiers h complets.
#import <UIKit/UIKit.h>
@interface SettingsTableViewController : UITableViewController {
NSArray *sectionControllers;
}
@end
Que dois-je faire pour corriger l'erreur?