ios - Click inside UILabel -


I am working with an iOS application. What am I trying to do,

We say that the text for the UILB is "Record Blah Blah Records".

I have tagged two people in this lesson and when I click on one of these, I show a detailed view of that person. So this is working very well if I have a user named Record, and it works with many and I can present a detailed view. But my problem is that I do not know which user I clicked on, if I have tagged many people with the same name, I know I have to go for the ID. I am displayed by name now, so it is weird It's not that it's not working.

Should I save information in the database in which the user has entered two tags, or how can I ever know who is?

Please tell me in the right direction, the functionality is working great, it is only logic that when I click, I should display it again, I want to recreate the tagging system which is in Facebook when People comment on the photos and tag people in it. You can write many names there and Facebook will know who is who.

added

So what do I do I am making my tag I select from the list of available tags I can write them or I can always know which tag to save the current comment. But the problem occurs when I display them in different parts,

The first part is a UILB with all the tags in a row, which is different from the empty space. Here I know where the users have been tapped and I can display a detailed view of the name.

The second part is all the text, I can know where the tags are located, what is the pixels on that line and between that line and I know that when I click on them.

But I need logic to click two tags of the same name in the same UILBL. Do I have somehow saved the order of how I saved the tag?

An option that comes to mind in a label for the categories of text using that class You can add arbitrary characteristics, and in this way, you can add a custom attribute for the limit of each user's name, and possibly a NSNumber or NSString Can specify specific identifiers for the respective values ​​for proper information Can be used to make sure.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -