title: Can't resolve SIGABRT error - Times Table App with UITableView
body: <p>I am trying to build a times tables app with a slider and a UITableView, but it gives me the SIGABRT error. I have tried relinking every outlet and action as well as redoing it from scratch, but it still won't seem to work.</p>
  
  <p>Since I cannot paste it in here correctly formatted, I put it on     pastebin.com</p>
  
  <p>Debug code:   <a href="http://pastebin.com/cBaALXWq" rel="nofollow">http://pastebin.com/cBaALXWq</a></p>
  
  <p>ViewController.swift</p>
  
  <pre><code>import UIKit
  
  class ViewController: UIViewController, UITableViewDelegate {
  
  override func viewDidLoad() {
      super.viewDidLoad()
      // Do any additional setup after loading the view, typically from a nib.
  }
  
  override func didReceiveMemoryWarning() {
      super.didReceiveMemoryWarning()
      // Dispose of any resources that can be recreated.
  }
  @IBOutlet weak var sliderValue: UISlider!
  func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
      return 50
  }
  @IBAction func sliderMoved(sender: AnyObject) {
      var timesTableIndex: Int = Int(sender.value)!
      func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
          let cell = UITableViewCell(style: UITableViewCellStyle.Default, reuseIdentifier: "Cell")
          cell.textLabel?.text = String(timesTableIndex*indexPath.row+1)
          return cell
      }
  }
  
  }
  </code></pre>
  
  <p>AppDelegate.swift; gives error in line 4</p>
  
  <pre><code>import UIKit
  
  @UIApplicationMain
  class AppDelegate: UIResponder, UIApplicationDelegate {
  </code></pre>
  
  <p>EDIT</p>
  
  <pre><code>@IBOutlet weak var sliderValue: UISlider!
  var timesTableIndex: Int?
  func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
      return 50
  }
  @IBAction func sliderMoved(sender: AnyObject) {
      timesTableIndex = Int(sliderValue.value * 50)
      }
  }
  
  func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
  let cell = UITableViewCell(style: UITableViewCellStyle.Default, reuseIdentifier: "Cell")
  cell.textLabel.text = String(timesTableIndex*(1+indexPath.row))
  return cell
  
  }
  </code></pre>