私は、テキストの形でapiから応答が来ています。「計画された親のヘルスセンター」のテキストをスキャンして、その単語にハイパーリンクを挿入して、plansparenthood.orgにリダイレクトします。 /保健センターポータル。UILabelにハイパーリンクを挿入する
私のアプローチ:
NSString *text = response.content;
text = [text stringByReplacingOccurrencesOfString:@"Planned Parenthood health center"
withString:@"<a href=\"http://www.plannedparenthood.org/health-center\">Planned Parenthood health center</a>"];
テキストにリンクを交換なっているが。それは交換されています
<a href=\"http://www.plannedparenthood.org/health-center\">Planned Parenthood health center </a>
なぜ私はそこに何かのリンクを取得していないのですか?私は間違ったことをしています。また、ユーザーが有効にした対話をYESに設定しました。
ようなものを使用する必要がありますが... [NSAttributedTextでタップ可能な「リンク」を作成する –
可能な複製UILabel?](http://stackoverflow.com/questions/1256887/create-tapable-links-in-the-nsattributedtext-of-a-uilabel) – Multinerd