title: Swift Delete not working/showing up in table view
body: <p>So I am building an app using a table view. The problem is that the swipe to delete is not showing up in the simulator. When ever I try to swipe it to the left, nothing pops up. Here is the code for the main view controller. Any help would be appreciated!</p>
  
  <pre><code>  import UIKit
  
   class ViewController: UIViewController, UITableViewDataSource,  UITableViewDelegate {
  
  var tableView : UITableView?
  
  @IBOutlet weak var table: UITableView!
  // Table View where the goals are displayed
  
  
  
  override func viewDidLoad() {
      super.viewDidLoad()
  navigationItem.title =  "Goal List"
  }
  
  override func didReceiveMemoryWarning() {
      super.didReceiveMemoryWarning()
      // Dispose of any resources that can be recreated.
  }
  override func viewWillAppear(animated: Bool) {
  
      table.reloadData()
  
  
  
  }
  
  func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
  
      return goalMgr.goals.count
  }
  
  func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
      let cell : UITableViewCell = UITableViewCell(style: UITableViewCellStyle.Subtitle, reuseIdentifier: "cell")
  
      //Assinging the contents of our goal array into rows
      cell.textLabel?.text = goalMgr.goals[indexPath.row].goal
      cell.detailTextLabel?.text = goalMgr.goals[indexPath.row].time
      return cell
  
  
  }
  
  func tableView(tableView: UITableView,
      didSelectRowAtIndexPath indexPath: NSIndexPath) {
      var detail:SecondVC = self.storyboard?.instantiateViewControllerWithIdentifier("SecondVC") as SecondVC
  
      detail.cellGoal = goalMgr.goals[indexPath.row].goal
      detail.cellTime = goalMgr.goals[indexPath.row].time
  
      self.navigationController?.pushViewController(detail, animated: true)
  
  }
  
  
  func tableView(tableView: UITableView, canEditRowAtIndexPath indexPath: NSIndexPath) -&gt; Bool {
      return true
  }
  
  
  func tableView(tableView:UITableView!, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPath:NSIndexPath!){
  
      if (editingStyle == UITableViewCellEditingStyle.Delete){
  
          goalMgr.removeGoal(indexPath.row)
          table.reloadData()
  
          }
  
    }
  
  }
  </code></pre>
  
  <p>Here is the file in which the removeGoal function is created </p>
  
  <pre><code>import UIKit
  
  var goalMgr:GoalManager = GoalManager()
  
  struct Goal{
  var goal: String = "Goal"
  var time: String = "Time"
   }
  
  class GoalManager: NSObject {
  
  var goals = [Goal]()
  var persistentHelper: PersistentHelper = PersistentHelper()
  
  override init(){
  
      var tempGoals:NSArray = persistentHelper.list("Goal")
      for res:AnyObject in tempGoals{
          goals.append(Goal(goal:res.valueForKey("goal")as String,time:res.valueForKey("time") as String))
      }
  
  }
  
  func addGoal(goal:String, time: String){
  
      var dicGoal: Dictionary&lt;String, String&gt; = Dictionary&lt;String,String&gt;()
      dicGoal["goal"] = goal
      dicGoal["time"] = time
  
      if(persistentHelper.save("Goal", parameters: dicGoal)){
          goals.append(Goal(goal: goal, time: time))
      }
  }
  
  
  func removeGoal(index:Int){
  
      var value:String = goals[index].goal
  
      if(persistentHelper.remove("Goal", key: "goal", value: value)){
          goals.removeAtIndex(index)
      }
  }    
  
    }
  </code></pre>