Animating an object using the ios sdk is very simple, but it's very difficult to retrieve an howto on the internet. So here you are a simple example
In this simple tutorial I'm going show to you how run a roulette, first of all we need the roulette, we will use the following image:
Now open Xcode and create a new project, you can choose "Single View Application" as your template.
Drag the image into the project.
Select the storyboard and insert a UIImageView and a Round Rect Button.
Open the ViewController.h header file and modify it, it should look like the following:
Open the ViewController.m file and just after insert the following code:
Into the viewDidLoad method, before the [super viewDidLoad]; statement add the following two lines to initialize the roulette values
angle = 0;
runStop = FALSE;
Now go to the storyboard, right click on the "View Controller" and drag on the button, in the popop menu that will appear select theButton; right t click on the "View Controller" and drag on the UIImageView in the popop menu that will appear select theImageView; right click on the button and drag on the "View Controller", in the popup menu that will appear select "runRoulette:".
That's all, now run your project, and try to tap on the button you should see the roulette rotating and stopping.