I am adding gesture recognizers to my own subclass of UIView. In the recognizer handling method, I can access recognizer.view.
How can I cast this as my own UIView subclass, so that I can access its custom properties from within this method?
I’m adding the recognizer like so
UIPanGestureRecognizer *panRecognizer = [[UIPanGestureRecognizer alloc]initWithTarget:self action:@selector(handlePan:)];
panRecognizer.delegate = self;
And the method stub is
- (void)handlePan:(UIPanGestureRecognizer *)panRecognizer {
}
1 Answer