All apps on your iPhone use infinite loops, because they start running, then continually watch for events until you choose to quit them. To make an infinite loop, just use true as your condition . true is always true, so the loop will repeat forever.