SChartAnnotation and UITapGestureRecognizer


#1

Trying to add a gesture recognizer to my annotation but the gesture doesn’t ever get called. I have set _chart.gesturePanType = SChartGesturePanTypeNone; as per this thread: http://www.shinobicontrols.com/forum/shinobicontrols/2013/4/gesture-recognizer-on-schartannotation

SChartAnnotation *releaseLabel = [SChartAnnotation
                                          annotationWithText:@"some text"
                                          andFont:[UIFont systemFontOfSize:14.f]
                                          withXAxis:_chart.xAxis
                                          andYAxis:_chart.yAxis
                                          atXPosition:chart.xAxis.minorTickFrequency
                                          andYPosition:y.category
                                          withTextColor:[UIColor redColor] //black
                                          withBackgroundColor:[UIColor clearColor]];

[_chart addAnnotation:releaseLabel];

UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(annotationTapped:)];
        [releaseLabel addGestureRecognizer:tap];




 - (void)annotationTapped:(UITapGestureRecognizer*)sender {
 NSLog(@"tapped");
 }

#2

How are you getting along with this issue? Did you successfully find a workaround?