简体   繁体   English

如何通过MFMessageViewController发送自定义应用程序URL方案

[英]How to send a custom app url scheme through MFMessageViewController

When I create a MFmessageViewController, I want to set the body of the text as the custom url scheme of my app, so the recipient of the text can open the app from the text. 创建MFmessageViewController时,我想将文本的主体设置为应用程序的自定义url方案,以便文本的接收者可以从文本中打开应用程序。 I can't get the text to appear as a URL though, only a string? 我无法使文本显示为URL,只能是字符串? Does anyone know how to do this? 有谁知道如何做到这一点?

 NSString *bodyString = @"<a href='http://www.site.co.in/pathtolink'>Touch Me</a>\n";

将bodyString设置为Email Body,希望对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM