ClockView icon indicating copy to clipboard operation
ClockView copied to clipboard

Makes the second hand move in one continous smooth motion

Open AndrexOfficial opened this issue 11 years ago • 2 comments

How to Make the second hand move in one continous smooth motion and how to add a shadow that follows the hands?

AndrexOfficial avatar Jul 23 '13 22:07 AndrexOfficial

Sorry for the late response. Regarding the continuos hand there is a property for that will do that:

clock.secHandContinuos = YES

Regarding the shadow. There is no solution for this at this moment but you could set the shadow of secHand since it is a CALayer. I imagine the shadow direction should change according to the angle so a good place to do it would be here: https://github.com/nacho4d/ClockView/blob/master/ClockView/ClockView/ClockView.m#L110-122

:)

nacho4d avatar Feb 19 '15 12:02 nacho4d

thanks . hey are you on facebook?

--------- Original Message --------- Subject: Re: [ClockView] Makes the second hand move in one continous smooth motion (#3) From: "Guillermo Ignacio Enriquez Gutierrez" [email protected] Date: 2/19/15 5:25 am To: "nacho4d/ClockView" [email protected]

Sorry for the late response. Regarding the continuos hand there is a property for that will do that: clock.secHandContinuos = YES Regarding the shadow. There is no solution for this at this moment but you could set the shadow of secHand since it is a CALayer. I imagine the shadow direction should change according to the angle so a good place to do it would be here: https://github.com/nacho4d/ClockView/blob/master/ClockView/ClockView/ClockView.m#L110-122 :)

Reply to this email directly or view it on GitHub.

josepharthur avatar Feb 19 '15 17:02 josepharthur