       }
       
       return true
-      
-      
     }
+    
+    // MARK: Segue related
+    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
+      if segue.identifier == "PickIcon" {
+        let controller = segue.destinationViewController as! IconPickerViewController
+        controller.delegate = self
+      }
+    }
+    
+    // MARK: IconPicker related
+    
 
 }

        title = "Edit checklist"
        checklistTextField?.text = itemToEdit.name
        doneBarButton?.enabled = true
      }
    }
    
    // MARK: Table specific

    func listDetailViewController(controller: ListDetailViewController, didFinishEditingChecklist checklist: Checklist)
  }
  
  class ListDetailViewController: UITableViewController, UITextFieldDelegate, IconPickerViewControllerDelegate {
    var checklistToEdit: Checklist?
    var iconName = "Folder"
    
    
    @IBOutlet weak var checklistTextField: UITextField?
    @IBOutlet weak var doneBarButton: UIBarButtonItem?
