JoeFryer / JDFTooltips

A simple library for showing tooltip-like popups on iOS
MIT License
189 stars 42 forks source link

Two tooltips when I should be getting one #8

Closed anuchandra closed 8 years ago

anuchandra commented 8 years ago

I'm getting two tooltips when I should be getting one. I have a tableview which contains a imageview and a contentview. The contentview has a button. I'd like to show the tooltip pointing to the button. The code below tries to do that. Could you point me where I'm going wrong?

simulator screen shot 31 jan 2016 22 38 32

JoeFryer commented 8 years ago

The reason you're getting 2 tooltips is because you are creating/showing it in cel cellForRowAtIndexPath - this can be called more than once.

anuchandra commented 8 years ago

That's extremely well spotted and easily fixed. Thanks.

JoeFryer commented 8 years ago

No problem - glad I could help. I'll close this Issue.