We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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!
The text was updated successfully, but these errors were encountered: