Posts tagged as: NSTimer

NSTimer: The Poor Man’s Threading – Code Snapshot

July 23rd, 2009 Posted by: - posted under:Snippets - 34 Comments

Introduction
Hey guys. So usually the posts we put up here involve screencasts and presentations, but we are going to start also posting small less time consuming pieces for the site. Today I bring to you a small project involving NSTimers. Today we are going to build an app that represents a horse race. We will create a view with 6 small UIView squares with a blue background at the bottom of the screen, we will use a timer to move …

READ MORE

iPhone Programming Tutorial – Animating a Ball Using An NSTimer

October 28th, 2008 Posted by: - posted under:Tutorials - 91 Comments

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 …

READ MORE