How can I detect taps on a particular part (substring) of a UILabel?
问题 I am new to iOS development. I dont know whether this questions has been asked already or not, I tried searching for the solution on stackoverflow but didn't get any results. Question : I have a UILabel called myLabel with the text: "Click here to proceed" Now the problem is I want to perform an action when user taps only "Click". I know how to use UITapGestureRecognizer , but it responds to the whole UILabel . Is it possible to just detect when user taps only on string "Click"? 回答1: You