Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
一部のアプリでは、アプリから直接メールを送信できます。Flipboard を見たことがあります。記事を友人にメールで送信できます。メール内には次のようなハイパーリンク テキストがあります。
Flipboard経由で送信
そのため、テキストをクリックするだけでそのページに移動できます。これどうやってするの?メッセージ本文の一部としてリンクを追加したくありません。これは非常に面倒で醜いためです...このクリック可能なテキストの方法を好みます。
ありがとう!
にはMFMailComposeViewControllerと呼ばれるメソッドがあり setMessageBody:isHTML:ます。ここで重要なのはisHTML. HTML でリンクを作成するのは非常に簡単です<a href=myURL>LinkName</a>。
MFMailComposeViewController
setMessageBody:isHTML:
isHTML
<a href=myURL>LinkName</a>