         datePicker.showActionSheetPicker()
     }
 
-    @IBAction func distancePickerClicked(sender:UIButton) {
-    let distancePicker = ActionSheetDistancePicker(title: "Select distance", bigUnitString: "m", bigUnitMax: 2, selectedBigUnit: 1, smallUnitString: "cm", smallUnitMax: 99, selectedSmallUnit: 60, target: self, action: Selector("measurementWasSelected:smallUnit:element:"), origin: sender.superview!.superview)
+    @IBAction func distancePickerClicked(sender: UIButton) {
+        let distancePicker = ActionSheetDistancePicker(title: "Select distance", bigUnitString: "m", bigUnitMax: 2, selectedBigUnit: 1, smallUnitString: "cm", smallUnitMax: 99, selectedSmallUnit: 60, target: self, action: Selector("measurementWasSelected:smallUnit:element:"), origin: sender.superview!.superview)
         distancePicker.showActionSheetPicker()
     }
 
-    func measurementWasSelected(bigUnit:NSNumber, smallUnit:NSNumber, element:AnyObject)
-    {
+    func measurementWasSelected(bigUnit: NSNumber, smallUnit: NSNumber, element: AnyObject) {
         println("\(element)")
         println("\(smallUnit)")
         println("\(bigUnit)")
-    println("measurementWasSelected")
+        println("measurementWasSelected")
 
     }
 
     @IBAction func DateAndTimeClicked(sender: UIButton) {
 
 
-        var datePicker = ActionSheetDatePicker(title: "DateAndTime:", datePickerMode: UIDatePickerMode.DateAndTime, selectedDate: NSDate(), doneBlock: {ActionStringDoneBlock in return}, cancelBlock: {ActionStringCancelBlock in return }, origin: sender.superview!.superview)
+        var datePicker = ActionSheetDatePicker(title: "DateAndTime:", datePickerMode: UIDatePickerMode.DateAndTime, selectedDate: NSDate(), doneBlock: {
+            picker, value, index in
+
+            println("value = \(value)")
+            println("index = \(index)")
+            println("picker = \(picker)")
+            return
+        }, cancelBlock: { ActionStringCancelBlock in return }, origin: sender.superview!.superview)
         let secondsInWeek: NSTimeInterval = 7 * 24 * 60 * 60;
         datePicker.minimumDate = NSDate(timeInterval: -secondsInWeek, sinceDate: NSDate())
         datePicker.maximumDate = NSDate(timeInterval: secondsInWeek, sinceDate: NSDate())


        datePicker.showActionSheetPicker()
    }
    @IBAction func CountdownTimerClicked(sender: UIButton) {
        var datePicker = ActionSheetDatePicker(title: "CountDownTimer:", datePickerMode: UIDatePickerMode.CountDownTimer, selectedDate: NSDate(), doneBlock: {ActionStringDoneBlock in return}, cancelBlock: {ActionStringCancelBlock in return }, origin: sender.superview!.superview)

        datePicker.countDownDuration = 60 * 7
        datePicker.showActionSheetPicker()
    }
    @IBAction func navigationItemPicker(sender:UIBarButtonItem) {
        ActionSheetStringPicker.showPickerWithTitle("Nav Bar From Picker", rows: ["One", "Two", "A lot"], initialSelection: 1, doneBlock: {ActionStringDoneBlock in return}, cancelBlock: {ActionStringCancelBlock in return }, origin: sender)
    }
    @IBAction func localePickerClicked(sender: UIButton) {
        ActionSheetLocalePicker.showPickerWithTitle("Locale picker", initialSelection: NSTimeZone(), doneBlock: {ActionStringDoneBlock in return}, cancelBlock: {ActionStringCancelBlock in return }, origin: sender.superview!.superview)

    }
    @IBOutlet var localePicker: UIButton!

    func datePicked(obj:NSDate)
    {
        UIDatePickerModeTime.setTitle(obj.description, forState: UIControlState.Normal)
    }


    }

    @IBAction func DatePickerClicked(sender: UIButton) {

        var datePicker = ActionSheetDatePicker(title: "Date:", datePickerMode: UIDatePickerMode.Date, selectedDate: NSDate(), doneBlock: {
            picker, value, index in

            println("value = \(value)")
            println("index = \(index)")
            println("picker = \(picker)")
            return
        }, cancelBlock: { ActionStringCancelBlock in return }, origin: sender.superview!.superview)
        let secondsInWeek: NSTimeInterval = 7 * 24 * 60 * 60;
        datePicker.minimumDate = NSDate(timeInterval: -secondsInWeek, sinceDate: NSDate())
        datePicker.maximumDate = NSDate(timeInterval: secondsInWeek, sinceDate: NSDate())
