问题
is it somehow possible to add a clickable link to the alert-message of an UIAlertView? Especially in case of a Push-Notification?
The only solution i see, is to add the link as dictionary-item to the push alert message. If the message arrive with the link and the app is opened hereupon, i can check wheter there is a link in the dictionary and open a webview.
回答1:
While adding customizations to a UIAlertView
is strongly discouraged by Apple, the only way you have is to extend the UIAlertView
class itself, adding the link as a subview, handling it later in the appropriate way.
Since this is not the right approach, you should consider changing the way the user interacts with the interface.
来源:https://stackoverflow.com/questions/5949927/clickable-link-in-uialertview