Posts tagged as: UIImageView

iPhone Programming Tutorial – Animating a Ball Using An NSTimer

I have noticed recently many people wanting to create games for the iPhone and are unsure where to start.  A common misconception is that you must use OpenGL ES to create any game with graphics.  I am going to show you today how you can do some simple animation by moving a ball around the screen.  We will not be using OpenGL ES to move the ball.  We will simply be using an NSTimer and a UIImageView.
The code for this …

October 28th, 2008 Posted by: - posted under:Tutorials - View Comments READ MORE

iPhone Programming Tutorial – Using UITouch To Drag An Image Around The Screen

[qt:http://icodeblog.com/wp-content/uploads/2008/10/UITouch.mov 640 416]
In this tutorial, I will be showing you how to use UITouch to get the location of where a user touches on the screen.  We will be using this knowledge to drag a UIImageView around.
Learning how to use UITouch is the first steps in creating applications that are not navigation based (or don’t only use Apple’s built in components.  Later on, we will begin some basic game development that will utilize UITouch.
You will need this image for the …

October 20th, 2008 Posted by: - posted under:Tutorials - View Comments READ MORE