andreamazz / AMTagListView

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

Custom cell not selected #21

Closed malkabani closed 9 years ago

malkabani commented 9 years ago

hi i used Tags insde view inside table cell, but i can't select cell from table to get details (push to another view). and if i tap on cell (outSide of tagsView) work fine.

andreamazz commented 9 years ago

Hi @malkabani The selection is not triggered since the TagListView is an interactive view, make sure to disable user interaction on it, by using the userInteractionEnabled property

toftof commented 9 years ago

Hello @andreamazz , inhave the same problem. Looks like the setTapHandler is not triggered inside a tableviewcell. I have tried enabling the userinteraction property for both the cell and amtaglistview but still no luck. Pls advice. Thanks.

andreamazz commented 9 years ago

Try adding the taglistview to the cell itself, not to the contentView.

toftof commented 9 years ago

I have architectural requirements to keep the objects in contentview. Any guidance of how to achieve without adding to the cell directly?

Thanks.

andreamazz commented 9 years ago

The tags are basically UIButtons (i.e. there's a UIButton in their subviews), so the problem boils down to handle the tap of a common UIButton inside a view cell, it's not really relate with this library. I would suggest taking a look at this SO thread.

toftof commented 9 years ago

Perfect, thanks for the link.