Skip to content
New issue

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. #36

Open
rahulbluemark opened this issue May 9, 2018 · 0 comments

Comments

@rahulbluemark
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant