Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

How can I acquire rating stars for my iPhone application?

I want to add rating stars to my app, but I don't know where to get PNG files for the stars from. Can anyone direct me? Do i need to buy them of someone or how can I make them?

2 Answers

Patrick Cooney
Patrick Cooney
12,216 Points

You can get them in just about any of the ways you mention. I'm sure you can find some free ones in a Google image search. You could purchase some from a stock website if you are worried about copyright claims. Or you could make them using something like Adobe Illustrator or Sketch 3.

What are you using the stars for? Will they be static images to display a rating already given to something or will the user be pushing them (as buttons) to give a rating? If the user will be touching them I would recommend looking into creating them with Core Graphics.

Patrick thank you for your detailed response! Now when I come to think about it, I will need both static images and dynamic ones swell. I'll take a look at core graphics!

Thank you!

Patrick Cooney
Patrick Cooney
12,216 Points

I can't vouch for any of these, but there are some programs that let you draw stuff and they generate the objective-c or swift for you. If you have the money to spend on them I've heard they can save you a lot of time. I'm personally planning to get PaintCode 2 once I have a project that justifies spending $80 on it. You may want to try out one or all of them. Typically the trial won't let you use the code generated but they might be nice to play with to see if you like the program.

In no particular order: BezierCode PaintCode2 QuartzCode