I'm building an iPhone app using the Titanium framework. I need a 5-star rating control in my app, just like the one found in the app store. As a temporary solution I'm using the slider for adding a rating. Most of the examples I found on the web are in objective C. can somebody guide me on achieving this using titanium.

Using that logic approach above you should be able to change max to set the number of stars you want and simply setup the rate(v) to do one of the two options in the comments above. Keep in mind that you need to add the stars[i] to the view with a left or some type of positing that increments based on the number of stars available. Hope this helps.

Thanks Rony, but the sample is in Objective C. I am looking for some pointers to build this using the Titanium framework. Anyway I'll try to look at the logic from the above sample.
–
Ishan MahajanMay 23 '11 at 7:24

Can you not use pieces of Objective-C code in your Titanium built application? Titanium is used for building native applications... Or do you want to know how to write something like this in Javascript?

Seems its not that straightforward to use Objective-C code in a titanium app. I would prefer a solution in Javascript. But this is also a nice option. I'll give it a try. Thnx.
–
Ishan MahajanMay 23 '11 at 9:45