Working with and applying animations to your app
In this section, you'll learn how to work with CoreAnimation so that you can apply simple animations to your UIViews
by using View Transitions in an animation block.
Core Animation is essentially a graphics rendering and animation framework that is available on both the iOS and Mac OS X platforms and allows you to animate visual elements of your app, providing rich and smooth animation without having any impact on CPU performance.
Creating and implementing animations for the SlidingTiles game
In this section, we will look at how easy it is to implement animations in ourSlidingTiles
game. You'll work with CoreAnimation and the Animate
property of the UIView
class to handle animations, which will make our game come alive whenever a Game Tile is tapped on the Game Board.
So, let's start by applying the final touches to our SlidingTiles
game by modifying the ViewController
class, performing the following steps:
- Ensure that the
ViewController.cs
file...