 
 import UIKit
 import HealthKit
+import CoreData
 
 class WorkoutDetailViewController: UITableViewController {
 

            cell = tableView.dequeueReusableCellWithIdentifier("ActionCell", forIndexPath: indexPath) as! UITableViewCell
            if let linkedService = self.linkedServices?[indexPath.row] {
                cell.textLabel?.text = "Sync to \(linkedService)"
            }
        } else {
            cell = UITableViewCell()

        }
        
        self.useMetric = self.defaults.stringForKey("distanceUnit") == "meters"
    }
    
    override func viewWillAppear(animated: Bool) {
        if !isFirstLoad {
            self.tableView.reloadData()
        }
        isFirstLoad = false
    }

    override func didReceiveMemoryWarning() {
