UITableView是我们经常用的一个控件,而且在开发过程中经常需要设置dataSource和delegate,然后实现相应的协议:
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
}