开发者

lightweight implementation of textview with links?

开发者 https://www.devze.com 2023-03-10 09:11 出处:网络
Is there any lightweight implementation of text with links (highlighted text associated with a uri which a user can click o开发者_JAVA百科n) on ios? Webview would be too complicated. And I don\'t want

Is there any lightweight implementation of text with links (highlighted text associated with a uri which a user can click o开发者_JAVA百科n) on ios? Webview would be too complicated. And I don't want to be using three20 either.


You can implement text with link in following way:

1) Just display the text in label. 2) And take one button on label, set it's property as "Custom Button". So that, text will be displayed. 3) Implement click event of button. And open the url which you want to open.

Hope it will be helpful to you.

Let me know in case of any difficulty.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号