Tuesday, July 12, 2022

[FIXED] How to add a touchable Url link to a url in a UIAlertView's message?

Issue

I want to add a clickable link of an url into UIAlertView's message. Such that when user sees the alert view, they can can touch on link inside message. Alternatively they can go next by clicking on the OK button.

Is possible to do it? How?


Solution

The only way I see to implement what you are trying to is through a custom alert view.

There are several approaches that you can take. One is subclassing UIAlertView and here you can find a short tutorial: Subclass UIAlertView. In your subclass you could then build the alert any way you like to implement the touch-enabled text. Have a look at this tutorial for a way to do it.



Answered By - sergio
Answer Checked By - Robin (PHPFixing Admin)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.