我在表头视图部分有以下内容:
UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(sectionHeaderTapped:)];
我希望能在sectionHeaderTapped
方法中传递段落编号,以便可以识别点击的是哪个段落。
我的方法实现看起来像这样:
-(void)sectionHeaderTapped:(NSInteger)sectionValue {
NSLog(@"the section header is tapped ");
}
我该如何实现这个目标?