 	@IBOutlet weak var prevButton: UIButton!
 	@IBOutlet weak var nextButton: UIButton!
 	
+	var fotoGenerator:TimeLapseFotoGenerator!
+	
 	
 	override func viewDidLoad() {
 		super.viewDidLoad()
-		// Do any additional setup after loading the view, typically from a nib.
+		self.fotoGenerator = TimeLapseFotoGenerator(delegate: self)
 	}
 	
 	override func viewWillAppear(animated: Bool) {

	*/
	
	@IBAction func startStopButtonTouched(startStopButton: UIButton) {
		startStopButton.setTitle(startStopButton.tag == stopButtonTag ? "Start" : "Stop", forState:UIControlState.Normal)
		startStopButton.tag = startStopButton.tag == stopButtonTag ? startButtonTag : stopButtonTag
	}
	
	@IBAction func playButtonTouched(AnyObject) {

let startButtonTag = 1111
let stopButtonTag = 9999

class ViewController: UIViewController, TimeLapseFotoGeneratorDelegate {

	@IBOutlet weak var durationLabel: UILabel!
	@IBOutlet weak var startStopButton: UIButton!
