Swift 3.1

2 ways to implement tableView in iOS

Using UIViewController I have used two ways to implement UITableView. The first one that I learned was to use a UIViewController and conform it to use UITableViewDataSource and UITableViewDelegate protocols. class HomeController: UIViewController, UITableViewDataSource, UITableViewDelegate { } The UITableViewDataSource provides two required methods: numberOfRowsInSection and cellForRowAt. These two methods construct […]

Read More