BrowseViewController
加载BrowseResultsTableViewController
为subView
. 其中subview
,是以下代码块:
- (void)viewDidLoad
{
[super viewDidLoad];
UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init];
[refreshControl addTarget:self action:@selector(refreshResults:) forControlEvents:UIControlEventValueChanged];
[self.tableView addSubview:refreshControl];
}
- (void)refreshResults:(UIRefreshControl *)sender
{
NSLog(@"REFRESH");
//[self performSelector:@selector(updateTable) withObject:nil afterDelay:1];
}
抛出错误Thread 1: EXC_BAD_ACCESS (code=2 ....
如果我清理项目并重新构建,我会收到此错误:
2013-03-25 23:59:06.256 rockit[40772:c07]-[UIViewControllerWrapperView refreshResults:]:无法识别的选择器发送到实例 0x7516fe0 2013-03-25 23:59:06.257 rockit[40772:c07] - 终止应用程序由于未捕获的异常“NSInvalidArgumentException”,原因:“-[UIViewControllerWrapperView refreshResults:]:无法识别的选择器发送到实例 0x7516fe0”
为什么找不到方法?