Listen carefully, because this is specific. I'm trying to make an analog clock in iPhone SDK. I've been trying to accomplish this for three weeks now, I've asked five questions on SO, and I still have found almost NOTHING. I need help. I want to have a clock hand that simply rotates depending on the current time. I'm mostly focused on the second hand right now because it seems like the easiest.
I don't necessarily care what is used to rotate the clock hand (CALayers, UIView, etc.), just as long as it does what it needs to do. Any sort of help is greatly, greatly appreciated. Thanks.
EDIT: I also need the hands to be images. Hopefully that isn't too much. :(
You asked kind of the same question and I said that Layers is much better... well this time I have written the hole program in a record time than less than three weeks ;). If you want to use images then get your images and set them inside
initWithFrame:
Interface: ClockView.h
Implementation: ClockView.m
Usage:
three weeks? Seriously?
my clock is very fugly but it is a clock, and it looks good enough to guess the current time from it.