unrecognized selector sent to instance
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UILabel setLinksForSubstrings:withLinkHandler:]: unrecognized selector sent to instance
your code with bit modification: void(^handler)(FRHyperLabel *label, NSString *substring) = ^(FRHyperLabel *label, NSString *substring){ UIAlertController *controller = [UIAlertController alertControllerWithTitle:substring message:nil preferredStyle:UIAlertControllerStyleAlert]; [controller addAction:[UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:nil]]; [self presentViewController:controller animated:YES completion:nil]; };
//Step 3: Add link substrings
[label1 setLinksForSubstrings:@[@"to", @"and", @"in", @"of", @"are"] withLinkHandler:handler];
what can be the issue
I am also getting this issue. Did anyone solve it?
Dont select module and dont inherit class

Arey bhai koi dusra solution?