     }
     
     let settingIdentifier = "settingIdentifier"
-    private let settingLabel = ["Interval" , "Vibration"]
+ 
+    private let settingLabel = ["Repeat","Label", "Sound", "Snooze"]
     enum AlarmInterval: String {
         case Once="Once", EveryDay="EveryDay", WeekDay="WeekDay", WeekEnd="WeekEnd"
     }

    @IBOutlet weak var datePicker: UIDatePicker!
    var mediaItem: MPMediaItem?
    static var isVibration:Bool = false
    var isEditMode: Bool = false
    
    override func viewDidLoad() {
        super.viewDidLoad()

    func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        if section == 0
        {
            return 4
        }
        else
        {
            return 1
        }
    }
    
    func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        
        var cell = tableView.dequeueReusableCellWithIdentifier(
            settingIdentifier) as? UITableViewCell
        if cell == nil {
            cell = UITableViewCell(
                style: UITableViewCellStyle.Value1, reuseIdentifier: settingIdentifier)
        }
        if indexPath.section == 0
        {
            
            if indexPath.row == 0 || indexPath.row == 1 || indexPath.row == 2
            {
                
                cell!.textLabel!.text = settingLabel[indexPath.row]
                cell!.detailTextLabel!.text = settingLabelDetail.rawValue
                cell!.accessoryType = UITableViewCellAccessoryType.DisclosureIndicator
            }
            else if indexPath.row == 3
            {
               
                cell!.textLabel!.text = settingLabel[indexPath.row]
                let sw = UISwitch(frame: CGRect())
                sw.addTarget(self, action: "SwitchTapped:", forControlEvents: UIControlEvents.TouchUpInside)
                
                cell!.accessoryView = sw
            }
        }
        else if indexPath.section == 1{
            cell = UITableViewCell(
                style: UITableViewCellStyle.Subtitle, reuseIdentifier: settingIdentifier)
            cell!.textLabel!.text = "Delete"
        }
        
        return cell!
    }
    
    @IBAction func SwitchTapped(sender: UISwitch){
        if sender.on{
            AlarmAddEditViewController.isVibration = true
        }
        else{
            AlarmAddEditViewController.isVibration = false
        }
        
    }
