Make text view non-editable and non-selectable by default

This commit is contained in:
Claus Höfele
2014-04-18 14:17:19 +02:00
parent 638b0ee847
commit 4c2a87aede
2 changed files with 2 additions and 3 deletions

View File

@@ -76,9 +76,6 @@
- (void)setUpLinkTextView:(CCHLinkTextView *)linkTextView
{
linkTextView.editable = NO;
linkTextView.selectable = NO;
NSMutableAttributedString *attributedText = [linkTextView.attributedText mutableCopy];
if (attributedText) {
[attributedText addAttribute:CCHLinkAttributeName value:@"0" range:NSMakeRange(0, 20)];

View File

@@ -66,6 +66,8 @@ NSString *const CCHLinkAttributeName = @"CCHLinkAttributeName";
[self addGestureRecognizer:self.linkGestureRecognizer];
self.tapAreaInsets = UIEdgeInsetsMake(-5, -5, -5, -5);
self.editable = NO;
self.selectable = NO;
}
- (id)debugQuickLookObject