Google News
logo
IOS - Interview Questions
What are the tableview DataSource methods that are necessary to be implemented in order to use tableview in iOS app?
The following two DataSource methods are necessary to implement for using tableview.

1 func tableView(UITableView, numberOfRowsInSection: Int) -> Int This method returns the number of rows to be displayed in the section of the tableview.
2 func tableView(UITableView, cellForRowAt: IndexPath) -> UITableViewCell This method returns the object of a UITableViewCell, which shows the actual content of a particular row in the tableview. This method inserts the cell for a particular row in the tableview.
Advertisement