iPhone 富文本控件

发布于 2024-08-05 06:27:45 字数 85 浏览 9 评论 0原文

我即将构建一个 iPhone 屏幕,需要在其中显示格式化文本、启动浏览器的链接以及启动邮件客户端的电子邮件地址链接。

我应该使用哪个小部件?

I am about to build an iPhone screen where I need to display formatted text, a link that will kick off a browser, and an email address link that will kick off the mail client.

Which widget do I use for that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

≈。彩虹 2024-08-12 06:27:45

我在我的应用程序中使用 UIWebView。我不确定您计划使用哪种富文本格式,但 UIWebView 采用 HTML。您需要覆盖几个委托才能在 Safari Mobile 中启动 URL 视图(否则它们将直接出现在您的 UIWebView 中,这可能不是您想要的。)电子邮件链接应该启动 iPhone 的邮件应用程序。

I do the very thing you are looking to do in my app with a UIWebView. I'm not sure what kind of rich text format you were planning on using, but UIWebView takes HTML. There are a couple delegates you'll need to cover for the view to launch URLs in Safari Mobile (otherwise they'll appear directly in your UIWebView, which might not be what you want.) Email links should launch the iPhone's Mail app.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文