You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There was a problem specifically in a PieChart/RadarChart, where after a gesture was cancelled, touches were not restored. That was fixed in the latest commit.
Other than that, UIGestureRecognizers should work, as most gestures are already handled by native UIGestureRecognizers.
You may want to loop the gestureRecognizers array of the view, and modify their properties to allow correctly playing with other conflicting gesture recognizers.
How can I use UISwipeGestureRecognizer on chartView? I wrote some code but it didn't work.
(void)viewDidLoad
{
UISwipeGestureRecognizer *swipeRight = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(slideToRightWithGestureRecognizer:)];
swipeRight.direction = UISwipeGestureRecognizerDirectionRight;
[_chartView addGestureRecognizer:swipeRight];
}
-(void)slideToRightWithGestureRecognizer:(UISwipeGestureRecognizer *)gestureRecognizer{
NSLog(@"here");
}
The text was updated successfully, but these errors were encountered: