iPhone 富文本控件
我即将构建一个 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在我的应用程序中使用
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, butUIWebView
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 yourUIWebView
, which might not be what you want.) Email links should launch the iPhone's Mail app.