Ignore touches outside of links to make scroll view handle them

This commit is contained in:
Claus Höfele
2014-03-21 20:01:41 +01:00
parent 7a0731fb52
commit c74765f876
3 changed files with 32 additions and 63 deletions

View File

@@ -44,22 +44,11 @@
NSLog(@"Link tapped");
}
- (void)linkTextViewDidTap:(CCHLinkTextView *)linkTextView
{
NSLog(@"Tap");
[self performSegueWithIdentifier:@"tableViewToDetail" sender:self];
}
- (void)linkTextView:(CCHLinkTextView *)linkTextView didLongPressLinkAtCharacterIndex:(NSUInteger)characterIndex
{
NSLog(@"Link long pressed");
}
- (void)linkTextViewDidLongPress:(CCHLinkTextView *)linkTextView
{
NSLog(@"Long press");
}
#pragma mark - NSLinkAttributeName solution
- (void)setUpStandardTextView:(TextView *)standardTextView