Wangling I'm Wang Ling. I'm wangling you.

development

Time Warp in Animation

CAMediaTiming Protocol offers a small set of eight properties. But it is sufficient to do all kinds of time warps, if you know what exactly every property means and how to use it. The most used and simple one is duration: duration Specifies the basic duration of the animation, in seconds. Nothing needs further explanation [...]

Core Animation 101: From and To

Core Animation is cool, beautiful, and easy to use; but not easy to use correctly. First of all, you should RTFM(Read The Fabulous Manual). Secondly, of course, you should watch the nice Session Video 424 of WWDC 2010 and play with the sample code Animation101. Now, I assume you’ve done all the prerequisite work so [...]

Int Is Difficult

Int is the simplest data type, isn’t it? Yes, most of the time. No, not really: What’s the value of b? It’s just two lines of code, so don’t resort to your awesome compiler, simply give me the answer. NSUInteger a = 7; NSInteger b = MAX(4 – a, 1); What’s the problem of this [...]

← Before After →