I have a method written in objective-c. It's like this.
-(void) onLongPress:(UILongPressGestureRecognizer *) longPressGestureRecognizer {
I want to call this method from my swift file.So I did like this.
var longPressGuestureRecognizer = UILongPressGestureRecognizer(target: metrixUIViewController, action: #selector(metrixUIViewController.onLongPress(longPressGestureRecognizer:)))
But it says MetrixUIViewController
has no member onLongPress.
How can I solve this? Please help me.