开发者

iPad flip-clock with Core Animation

开发者 https://www.devze.com 2023-01-29 09:24 出处:网络
I\'m trying to make the flip-clock animation, I find this tutorial very interesting http://www.voyce.com/index.php/2010/04/10/creating-an-ipad-flip-clock-with-core-animation/

I'm trying to make the flip-clock animation, I find this tutorial very interesting http://www.voyce.com/index.php/2010/04/10/creating-an-ipad-flip-clock-with-core-animation/ but I still can't make it work. If someone did it and could share is e开发者_开发技巧xperience or even the code source that will be really nice.

Thanks,

P.S: if you have other tutorial link please share them.


What, exactly, do you need help on?

At the moment, there is some sample code available at Google Code: http://code.google.com/p/idharmaclock/source/browse/trunk/LostoClock/Classes/LostoClockViewController.m?spec=svn2&r=2

Referenced from: http://www.iphonedevsdk.com/forum/tutorial-requests/52329-flip-clock-animation-tutorial.html


check this out:

Flip Transform


I actually made a small framework out of the tutorial. Check:

https://github.com/jaydee3/JDFlipNumberView

It contains two main classes:

  • JDFlipNumberView (animated digits)
  • JDDateCountdownFlipView (a date countdown, just init with a date, set a frame and there you go.)

In any case, you just need to do three steps:

  1. Init the class
  2. Set a target value (or a date)
  3. Start the animation


I don't know if you can use this but who knows. There's a HTC hero theme for the iPhone, installable on jailbroken iPhones. This is not at all interesting, except for one feature of the theme. It has the flipclock. This theme shows the time on the homescreen exactly like you want. You can download the sourcecode of the theme here. You might have to dig into the code but the flipclock is there somewhere! Good luck and I hope you'll be able to make your application work like a charm!

0

精彩评论

暂无评论...
验证码 换一张
取 消