Im stuck at this,i want o put a Table View with a custom cell in View Controller but when i run it im getting a sigabrt error. I have implemented this code on a Table View Controller where the table is a view,but my goal is to add a button below the table view thats why i need to place it this way. Here is my code.

import UIKit

class WorkoutDetailViewController: UITableViewController ,UITableViewDelegate,UITableViewDataSource {

    var workouts: Workout?

   lazy var workoutdetailLines: [WorkoutDetail] = {
       //return ExerciseLine.exercisesLines()
       var zezi = WorkoutDetailLine.workoutDetailsLine()
       return zezi[0].workoutdetail


   override func viewDidLoad() {
       self.title = workouts?.workout_name


   override func didReceiveMemoryWarning() {
       // Dispose of any resources that can be recreated.

   override func numberOfSectionsInTableView(tableView: UITableView) -> Int {
       // #warning Potentially incomplete method implementation.
       // Return the number of sections.
       return 1

   override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
       // #warning Incomplete method implementation.
       // Return the number of rows in the section.
       let workoutdetailLine = workoutdetailLines[section]
       //return exerciseLine.exercises.count
       return workoutdetailLines.count


   override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
       let cell = tableView.dequeueReusableCellWithIdentifier("WorkoutDetail Cell", forIndexPath: indexPath) as! WorkoutDetailTableViewCell

       let workoutdetailLine = workoutdetailLines[indexPath.section]
       //let exercise = exerciseLine.exercises[indexPath.row]
       let workoutdetail = workoutdetailLines[indexPath.row]


       return cell


import Foundation
import UIKit

class WorkoutDetail{
   var exercise_name_in_detail: String

   init(exercise_named_in_detail_d: String){
       self.exercise_name_in_detail = exercise_named_in_detail_d

import Foundation
class WorkoutDetailLine{
   var name: String
   var workoutdetail: [WorkoutDetail]

   init(named: String,includedWorkoutsDetails: [WorkoutDetail]){
       name = named
       workoutdetail = includedWorkoutsDetails

   class func workoutDetailsLine()->[WorkoutDetailLine]{
   return [self.iFirstWorkout()]

   private class func iFirstWorkout()->WorkoutDetailLine{
        var workoutsdetailsinside = [WorkoutDetail]()
        workoutsdetailsinside.append(WorkoutDetail(exercise_named_in_detail_d: "Haj Radi"))
        return WorkoutDetailLine(named: "First Workout", includedWorkoutsDetails: workoutsdetailsinside)

import UIKit

class WorkoutDetailTableViewCell: UITableViewCell {

   @IBOutlet weak var workoutDetailexerciseName: UILabel!
   func configureCellWith(workoutdetail:WorkoutDetail){
   workoutDetailexerciseName.text = workoutdetail.exercise_name_in_detail