Problem implementing scroll and pinch when UITextView subclassed for touch events
Hi guys
I subclassed UITextView to receive touch events. Now, I am unable to scroll my textview or get pinch events. This is how I am subclassing it -
@interface TextView1 : UITextView<UITextViewDelegate>
- (BOOL )canBecomeFirstResponder;
- (void )touchesBegan: (NSSet * )touches withEvent: (UIEvent * )event;
- (void )touchesMoved: (NSSet * ) touches withEvent: (UIEvent * )event;
- (void )touchesEnded: (NSSet * ) touches withEvent: (UIEvent * )event;
@end
@implementation TextView1
//event/function definitions
@end
Touch works fine, how do I now implement scroll and pinch.
Can anyone help?
|