Имам NSAttributedString така:
NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:@"testing it out @clickhere"];
NSInteger length = str.length;
[str addAttribute:NSForegroundColorAttributeName value:[UIColor bestTextColor] range:NSMakeRange(0,length)];
NSMutableAttributedString се настройва на UILabel така:
label.attributedText = str;
Как да направя жест с докосване (или нещо, което може да се кликне) към друг контролер за изглед за думите „@clickhere“ в низа по-горе?
Благодаря!