How does the tableview ask the question?

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
}

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

1 Like

This topic was automatically closed after 166 days. New replies are no longer allowed.