FRHyperLabel icon indicating copy to clipboard operation
FRHyperLabel copied to clipboard

Link does not appear on iOS version 10.3 but the same code works on iOS 11.0 or later.

Open rahulbluemark opened this issue 7 years ago • 0 comments

Link does NOT appear on iOS version 10.3 but the same code works on iOS 11.0 or later.

Here my code snippet:

NSString *string1 = @"Hi I am Rahul Varma";             NSDictionary *attributes1 = @{NSForegroundColorAttributeName: [UIColor blackColor],NSFontAttributeName: [UIFont preferredFontForTextStyle:UIFontTextStyleTitle1]};                          _hyperLabel.attributedText = [[NSAttributedString alloc]initWithString:string1 attributes:attributes1];             self.hyperLabel.text = string1;                          void(^handler)(FRHyperLabel *label, NSString *substring) = ^(FRHyperLabel *label, NSString *substring){                 //Action taken here                 };                          //Step 3: Add link substrings             [self.hyperLabel setLinksForSubstrings:self.arrLinks withLinkHandler:handler];

Please help!

rahulbluemark avatar May 09 '18 11:05 rahulbluemark