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.
我想在我的视图中显示邮件 ID,以便单击邮件 ID 应该打开邮件编写器视图。
我想将按钮文本显示为下划线,以显示它是一个超链接,并让按钮单击事件调用邮件编写器视图。目前,我无法显示带下划线的按钮文本。
您可以使用 UILabel 来实现这个 Tack 查看TTTAttributedLabel以显示下划线标签。并将 TapGestureRecognizer 添加到标签,并在该 TapGestureRecognizer 方法中实现代码以显示 MailComposer。