我有三种采用参数的方法,
我对这个参数给出例外,
[QuestionnaireView continueSingle:withQuestion:question:]: unrecognized selector sent to instance 0x8a4b1c0
我究竟做错了什么?它的定义也在头文件中给出。
这是我的代码;
-(void) continueSingle:(id)sender withQuestion:(Question*)quest{
int counter = 0;
NSString * tempAnswer;
for(UIView* subview in [sender superview].subviews)
{
if([subview isKindOfClass:[UIButton class]])
{
if([((UIButton*)subview) isSelected])
{
counter++;
tempAnswer = [NSString stringWithFormat:@"%@",((UIButton*)subview).currentTitle];
}
}
}
}