如何对uitextfiuled或uilabel中的特定文本应用超链接 [英] How to apply the hyperlink for specific text in uitextfiuled or uilabel
问题描述
我正在开发一个应用程序.我要使用UILabel或UITextField放置文本.但是我需要为该文本的某些部分应用超链接.我正在Internet上搜索,不使用search.So.告诉我如何为UILabel或UITextField做到这一点.
i am developing one application.In that i want to use UILabel or UITextField to place the text.But i need to apply the hyperlink for some part of that text.I am searching on internet,no use of search.So please tell me how can i do that one for UILabel or UITextField.
推荐答案
采用两个不同的标签,一个用于这里"单词,另一个用于是我的应用程序".将此处"标签的userIneraction设置为true.将手势应用于该标签,并在触摸该标签时将用户重定向到相应的链接.
Take two different labels, one for "Here" word and another for "is my application". Make userIneraction true for "Here" label. Apply gesture to that label and on touch of that label redirect user to appropriate link.
这篇关于如何对uitextfiuled或uilabel中的特定文本应用超链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!