如何在我的应用程序中添加超链接?
我尝试了多种方法:
- UIWebView 不起作用,因为我有纹理背景,而 UIWebView 不做透明背景。
- UITextView - 似乎是一个非常好的选择。我已经让它自动检测我的超链接,但它用蓝色覆盖我的链接颜色。 :(
- 我看过 Three20 代码 - 这看起来过于复杂。
我在想,有没有办法让 UIButton 看起来像文本?这可能是完美的。
这真的很烦人,似乎几乎每个应用程序都这样做这个,但我不知道它是如何完成的。
I've tried a number of methods:
- A UIWebView doesn't do the trick because I've got a textured background, and the UIWebView doesn't do transparent backgrounds.
- A UITextView - seems like a really good option. I've got it auto detecting my hyperlink, but it overrides my link colour with blue. :(
- I've looked at the Three20 code - this looks overly complex.
I was thinking, is there a way to make a UIButton look like text? This'd probably be perfect.
This is really annoying, seems that almost every app does this, yet I can't find out how it's done.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
UIWebView
确实允许透明背景。我在我的应用程序 Pocket Tabs 中使用它。
UIWebView
does allow transparent backgrounds.I use this in my app, Pocket Tabs.