0

I would like to set link to image bubble. When the image bubble is tapped, I would like to show the linked web site. Is it possible? If yes, how to do it or what is the easiest way? Please help. Thanks.

ted1959
  • 1
  • 2
  • Just add a `UITapGesture` on the image bubble. Once someone taps on the imageBubble you get a callback, use this to navigate to required website. https://www.raywenderlich.com/76020/using-uigesturerecognizer-with-swift-tutorial – Sachin Vas Feb 15 '17 at 08:07
  • Thank you for your prompt response. I see. That is the way. How should I distinguish among some image bubbles, which is which link? Can I use "tag" like UIButton? – ted1959 Feb 15 '17 at 08:19
  • I would prefer using a UIImage Category and add a property like http://stackoverflow.com/questions/8733104/objective-c-property-instance-variable-in-category and then get the value from that. – Sachin Vas Feb 15 '17 at 08:25
  • Thank you for your additional information, but ... I need to learn more about UIImage Category. Thanks anyway. – ted1959 Feb 15 '17 at 08:44

0 Answers0