How to Highlight a Part of the Text in the Screen on User Interaction

时间:2016-02-03 03:55:50

标签: ios swift text

I have been trying to make a view which has (textView or UILabel) to show some paragraphs on the screen. I want it to be interactive with the user's touch. In addition, I want to divide the paragraph into sentences-like system. So, when the user touches different sentence, he get different options. For example, if the user touches sentences1 the app asks the user if he wants to go to another ViewController, but when the user touches sentence2 the app takes him to View Controller2.

I was an example that has the same thing that I wanna do.

ViewController

http://imgur.com/Kxbs64Q View Controller1 http://imgur.com/ntntlZK

I hope someone could help me with this because I have been trying for days with no luck.

0 个答案:

没有答案