ios - How to detect if there is a Link in UILabel text and make it clickable - Swift -


i using uilabel contain text. text may contain links http://www.google.com or www.google.com or google.com. how detect these links , make text clickable open in browser. please advice. in advance.

you can use uitextview instead , set detection links:

textview.datadetectortypes = uidatadetectortypelink;  

Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -