hsousa / HCSStarRatingView

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

Make the view not editable #26

Closed ylecuyer closed 8 years ago

ylecuyer commented 8 years ago

How do I make this view not editable (without removing User Interaction Enabled because I need it)

hsousa commented 8 years ago

This view depends on that property to know if it should or not allow the user to interact with it (ie. change the value).

Out of curiosity, why do you need userInteractionEnabled=YES if you don't want to allow the user to edit the view?

ylecuyer commented 8 years ago

EDStarRating for example has an attribute editable. I want to use this view to display the rating of an object and let the user click this view to show a pop-up that would let the user rate this object.

On Mon, 26 Oct 2015 11:52 Hugo Sousa notifications@github.com wrote:

This view depends on that property to know if it should or not allow the user to interact with it (ie. change the value).

Out of curiosity, why do you need userInteractionEnabled=YES if you don't want to allow the user to edit the view?

— Reply to this email directly or view it on GitHub https://github.com/hsousa/HCSStarRatingView/issues/26#issuecomment-151098489 .

hsousa commented 8 years ago

Crap, that's a completely valid answer! I'll change this. :-)