I believe, most of the applications include ratings within application for different purpose.
So, Here, I am just going to provide basic module & which can be used based on your different needs.
Here are the screen-shots from the Output using iOS Simulator.
Code is scattered so, I am not going to put all the code here. Get the sample code & just drag-drop what-ever you need. :)