// 4.创建按钮
BFModuleItem *button = [BFModuleItem buttonWithType:UIButtonTypeCustom];
// 4.1.设置item的frame
CGFloat y = (kCenterCellHeight + kCellVerticalMargin) * index;
button.frame = CGRectMake(kIconWidth, y, kCenterCellWidth - kIconWidth, kIconHeight);
[button addTarget:self action:@selector(rightButtonClick:) forControlEvents:UIControlEventTouchUpInside];
[button setBackgroundColor:[UIColor greenColor]];
[_scrollView addSubview:button];
- (void)rightButtonClick:(BFModuleItem *)item { BFLog(@"bbbbbbb"); }
上面的代码都有写却报这个错误,为什么会去UIViewControllerWrapperView里面找方法,是不是xib连线有问题,可是按钮却有显示出来,哪位大神知道的,麻烦说下,谢谢
-[UIViewControllerWrapperView rightButtonClick:]: unrecognized selector sent to instance 0x8d4b450