hsousa / HCSStarRatingView

Simple star rating view for iOS written in Objective-C
MIT License
1.28k stars 196 forks source link

Tap gesture not working on iOS 10+ #55

Open renanstig opened 7 years ago

renanstig commented 7 years ago

Hello,

First, thanks for sharing this library with us, it's really great. I'm facing a problem which my tap gesture seems not to be recognized by the UIView. I did a quick search in the list of closed issues and I found out that I should change is enabled property to false.

I did it and set UserInteractionEnabled to true, but even so my tap gesture still don't work. Do you have any idea what I'm doing wrong? Here's the full code

reviewsNumber.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(self.openReviews(_:)))) reviewsNumber.isEnabled = false reviewsNumber.isUserInteractionEnabled = true