Changes

Jump to: navigation, search

Basic iOS 9 Animation using Core Animation

16 bytes removed, 20:34, 1 February 2016
m
Text replacement - "<google>BUY_IOS9</google>" to "<htmlet>ios9</htmlet>"
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
The key point to keep in mind with transformations is that they become animated effects when performed within an animation block. The transformations evolve over the duration of the animation and follow the specified animation curve in terms of timing.
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
== Combining Transformations ==
rotateTrans)
</pre>
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
Ternary operators are then used to switch the scale and rotation angle variables ready for the next touch. In other words, after rotating 180 degrees on the first touch the view will need to be rotated to 360 degrees on the next animation. Similarly, once the box has been scaled by a factor of 2 it needs to scale back to its original size on the next animation:
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>

Navigation menu