andreamazz / AMTagListView

UIScrollView subclass that allows to add a list of highly customizable tags.
MIT License
758 stars 110 forks source link

Is there a way to detect when user removed a tag? #46

Closed claudioredi closed 8 years ago

claudioredi commented 8 years ago

I'm trying to notify some app class when a tag was deleted by user. I didn't find any event triggered when this happens so don't see you can detect it.

I could do the change and create a pull request in case it's not implemented and you think it could help other people.

Thanks

andreamazz commented 8 years ago

No, currently there is no way to tell. PRs are welcome. Did you implement a method in the delegate?

claudioredi commented 8 years ago

I haven't implemented anything yet, but adding a method in the delegate would be the best. Keep you posted.

Thanks

claudioredi commented 8 years ago

I may be crazy but I remember being able to delete tags clicking on them. I tested this some days ago but I'm quite sure I saw that. I'm no longer able to do so. Am I crazy? :)

andreamazz commented 8 years ago

Nope, you're right, I changed the sample to test another issue. You can however remove the last tag by clicking the right navbar button

claudioredi commented 8 years ago

I've finally used AMTagViewNotification to detect user tap over tag and delete it. Haven't changed anything on the code. Feel free to close this.

Thanks!

andreamazz commented 8 years ago

Cool :+1:

IOSDeveloperProgrammer commented 8 years ago

Hi, I am having same problem. how to detect tag index ?? please tell me

andreamazz commented 8 years ago

Let me add a delegate method for this purpose, it'll be more clear. I'll do it in the next few days.

andreamazz commented 8 years ago

And by next few days I mean now. Check out the latest commit and let me know if that works for you.

andreamazz commented 8 years ago

Released 1.4.0