hsousa / HCSStarRatingView

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

Is it possible to show it on readonly mode? #28

Closed claudioredi closed 8 years ago

claudioredi commented 9 years ago

It seems it's not possible but in case I'm missing something I thought I'd to ask :)

Is any way to disallow edition. I'd like to use the same control to provide the feedback and for showing it on a list.

Great work on this, thanks for sharing!

kkgelu commented 9 years ago

+1 for sharing indeed.

This works for me:

  starRatingView.enabled = NO;
hsousa commented 8 years ago

Hi! Sorry for the holy-crap-this-is-so-late reply!

Like @kkgelu said, setting enabled to NO should do the trick for this.

Doing the same for userInteractionEnabled could be considered an alternative, but personally I'd rather use enabled.

Anyway, thanks for using the control and taking the time to create the issue. :+1: