iphone - Rotating UIButtons on a view -


I have 5 buttons that are on UIView which I would like to plot equally with a circular path, The path that will constantly rotate on it. To be clear, I do not want to rotate the button myself, I just want to take them on the circular path.

What is the best way to manage it?

UIBezierPath or CGPath for each button Create, adjust and adjust the initial angle For every initial starting point of the angle in the account then create a CAKeyframeAnimation for each button / path, give it the path, set it in autorepeat and add it to the appropriate button's layer.

UIBezierPath method + bezierPathWithArcCenter: Radius: StartAng: Andangel: clockwise: will help you create circular paths. You will need to calculate the right angles, but this is just a small math.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -