Please could you tell me how to rotate a UIView (with a pie chart on) as if its on a pivot. It will only rotate once the user has flicked the view.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’d use something like this:
Merely call the spin method when you want to spin 360º. Adjust as needed to spin more, less, faster, slower, etc.
EDIT: Should note, that in the above code, the
viewproperty is the one we’re rotating, in case it wasn’t obvious. So changeself.viewto whatever view you want to rotate.