Make links clickable in chat bubbles

This commit is contained in:
Christophe Deschamps 2022-01-21 08:49:32 +01:00
parent 308f47ad97
commit cfecd42524
2 changed files with 8 additions and 3 deletions

View file

@ -66,8 +66,10 @@
self.vrView.layer.cornerRadius = 30.0f;
self.vrView.layer.masksToBounds = YES;
[self.innerView addGestureRecognizer:[[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(onPopupMenuPressed)]];
self.messageText.userInteractionEnabled = false;
self.messageText.userInteractionEnabled = true;
self.messageText.editable = false;
self.messageText.selectable = true;
self.messageText.dataDetectorTypes = UIDataDetectorTypeLink;
}
return self;
}

View file

@ -47,7 +47,10 @@
[_innerView addGestureRecognizer:[[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(onPopupMenuPressed)]];
_messageText.userInteractionEnabled = false;
_messageText.userInteractionEnabled = true;
_messageText.editable = false;
_messageText.selectable = true;
_messageText.dataDetectorTypes = UIDataDetectorTypeLink;
self.contentView.userInteractionEnabled = NO;