You can add a GestureRecognizer to the view, and not to some words. This is a rather difficult task, there is no simple solution.
I can think in some approaches, for example:
- Place a transparent look on top of bold words to get a Tap.
- Detecting Tap throughout the UITextView, and then calculating based on the position of the touch and the position of the bold words if it hits.
Both options require a lot of code and many extreme cases when it can fail.
As I said, this is a very difficult situation, you can continue to use textViewDidChangeSelection and fix problems, we can help you.
Antonio MG Jul 10 '13 at 11:20 2013-07-10 11:20
source share