I\'m attempting to make a 24 hour analog clock and currently have a 12 hour clock.
What I wrote:
currentTime = [NSDate date]; dateComponents = [c
What you want to do is to wrap the 24 hour clock to 12 hour rotations, you can use a modulo for this like so:
hourAngle = (30 * (hour % 12) + minute / 2);