【发布时间】:2010-09-23 11:44:03
【问题描述】:
我收到了这个警告。
'-respondsToSelector:' 在协议中找不到
它出现在下面标有“HERE”的那一行。
- (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
我需要做什么来修复错误?
【问题讨论】:
标签: iphone xcode uitableview iphone-sdk-3.0