Quote:
Originally Posted by Innovation
I am writing a book application which allows users to rate books on a 1 - 5 star scale. I need a custom View for implementing this. I am thinking of doing this by using a subclass of UIImageView and detecting the tap location tap within the view and swapping in active or inactive stars to indicate the rating. Has anyone done something like this before of is there a better way of doing this?
Thanks.
|
I guess, instead of subclassing imageView it would be better if you subclass UIView.
Have 5 imageView objects in it for 5 stars and detect touches using CGRectContainsPoint.
This would help you create a generalized custom view which you could use in some of your other apps also... as it is!!!!
I havent implemented this yet, but would have done it the way mentioned above if required....
Regards,
Akshay Shah.
__________________
If you think I did help you, you can always thank me by buying
iHoldMore - A very nice and addictive game...
Need a mobile app. Contact Us.
Ruby Solutions Pvt. Ltd.
You can mail me at
akshay@ruby-solutions.com