I'm new to xcode and Swift.
When I finished my application, I got error "SIGABRT". I've heard that it's pretty common, but all solutions that I've found on the Internet don't work. I've also heard that my code is correct, but there is problem in storyboard.
var NamesOfExercises = [
["name":"example1"],
["name":"example2"],
["name":"kexample3"]]
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.
}
override func numberOfSectionsInTableView(tableView: UITableView) -> Int {
return 1
}
override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return NamesOfExercises.count
}
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCellWithIdentifier("mycell") as! ExercisesTableViewCell
cell.nameLabel.text = NamesOfExercises[indexPath.item] ["name"]
return cell
}
Screens:
`