Tengo un problema, cuando corro la aplicación y le doy al botón guardar la nota, se congela la app y me manda directamente al Xcode al ViewController, justo en la linea del print, se colorea esa linea de verde y al final me marca un "Thread: 1 breakpoint: 1.1"
y como dije anteriormente, la app se queda congelada y ya no da mas.Que puedo hacer?
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var itemTextField: UITextField!
@IBOutlet weak var tableView: UITableView!
let todoList = todolist()
@IBAction func addButtonPressed(sender: UIButton) {
----->print("Agregando un elemento a la lista: (itemTextField.text)")
todoList.addItem(itemTextField.text!)
tableView.reloadData()
}
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: "Cell")
tableView.dataSource = todoList
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}