Is there an iPhone app that takes continuous photos?
Try Triggertrap, it has time lapse and other options to trigger a photo. It works with the iPhone's camera or, if you purchase the appropriate cable, you can hook it up to a dslr. The free version is limited but I think provides the functionality you're looking for.

Triggertrap Mobile