Group Group Group Group Group Group Group Group Group

How does the tableview ask the question?


#1

How does the tableView ask a question , can any one please explain in the code below, how come it ask question? This terminology I keep hearing but how does it happen no one explains in the below code , how was. the UITableView able to ask a question here is what I am not able to understand, it simply resides as a parameter inside a function called tableView so how does it ask the question - class Test: UITableViewController {

override func viewDidLoad() {
super.viewDidLoad()

}

override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 100
}


#2

Hi @amitsrivastava, could you clarify your question please? I’m not exactly sure what you mean by how the tableview asks a question but if you have an example or quote from iOS apprentice feel free to share.

Best,
Gina