Thread 1: breakpoint 1.1

What is the cause of the "Thread 1: breakpoint 1.1" error so that I linked the table to View Control and added commands and modifications "class ViewController: UIViewController {


let people = [
("Rania Badawy", "Beba"),
("Hajer Ahmed", "Beni Swafe"),
("Taqwa Yousef", "Beni Swafe"),
]

let videos = [
("Android App Development", "74 videos"),
("C ++ for Beginners", "87 videos"),
("Java", "142 videos"),
("Python Programming", "63 videos"),
("Web Design", "68 videos"),

]


func numberOfSectionsInTableView (tableView: UITableView) -> Int {
return 2
}

func tableView (tableView: UITableView, number0fRowsInSection section: Int) -> Int {

if section == 0 {
return people.count
} else {
return videos.count
}

}
func tableView ( tableView: UITableView, cellForRowAtTndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = UITableViewCell ()
if indexPath.section == 0 {
let (personName,
) = people [indexPath.row]
cell.textLabel? .text = personName
}

else {
let (videoTitle, _) = videos [indexPath.row]
cell.textLabel? .text = videoTitle

}


return cell

}

override func viewDidLoad () {
super.viewDidLoad ()
}
"But when Run, the project shows the previous mistake
I want your help, please
You have not the correct signature for
Code Block
    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {

You miss the _ for first parameter, and the other arguments are not correct either. The signature you use is an old API version.

In addition, you should not create a new cell, based on no template, but dequeue an existing:
Code Block
    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCell(withIdentifier: "CellItem", for: indexPath)

Where "CellItem" is the cell ID.
“Breakpoint 1.1” sounds like the debugger is stopping at a breakpoint you’ve set. Is there a blue arrow in the gutter on the left of your code where the line numbers are? That’s a breakpoint. You can drag it away to get rid of it. Or manage them using the breakpoints navigator in the left sidebar.
Thread 1: breakpoint 1.1
 
 
Q