Has anyone had any success with placing a gesture recognizer on an annotation in a line chart?
I would like to add gestureRecognizers to a band annotation, and so far I haven’t had much success. The recognizers all seem to be consumed by the chart.
Below is a snippet of my code where I’m attempting to add the recognizer to the annotation.
SChartAnnotation *band = [SChartAnnotation verticalBandAtPosition:position andMaxX:maxX withXAxis:self.chart.xAxis andYAxis:self.chart.yAxis withColor:[UIColor grayColor]];
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(contractBandTapped:)];
UILongPressGestureRecognizer *longPress = [[UILongPressGestureRecognizer alloc]initWithTarget:self action:@selector(contractBandLongTap:)];