здесь, я нашел это для вас:
https://stackoverflow.com/a/5999294/1047258
Код этого ответа:
NSDataDetector* detector = [NSDataDetector dataDetectorWithTypes:NSTextCheckingTypeLink error:nil];
NSArray* matches = [detector matchesInString:source options:0 range:NSMakeRange(0, [source length])];
Затем для обработки URL-адресов:
for (NSTextCheckingResult *match in matches) {
NSURL *url = [match URL];
// do whatever you want with the url
}