我收到此警告。Iphone,我该如何解决此警告:'-respondsToSelector:'找不到协议
“-respondsToSelector:”未在协议(多个)
它发生在通过“这里”下面标线找到。
- (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;
}
继承人我全h文件。
#import <UIKit/UIKit.h>
@interface SettingsTableViewController : UITableViewController {
NSArray *sectionControllers;
}
@end
我需要做什么来修复错误?