In my app i am using UITextView to display three lines. In that i need to add link for certain text. I am searched in google and SO, but i couldn’t found the exact solution for my problem.
I Tried this but its not working
NSString *testString = @"This will go to <a href = \"http://www.google.com\">Google</a>";
[webview loadHTMLString:testString baseURL:baseURL];
[lblLinksTitle setText:testString];
I want Google as clickable text which have to open in safari browser. May be its simple. As i am new to iOS i couldn’t figure out to do this.
Thanks for your help guys.
Much appreciated.
Just use UIWebView, don’t use UiTextView