What’s the official way to load two tableview controllers on the same view controller?

The way I’m currently achieving this is by using the storyboard to point to one of the tableview controllers as both the datasource and delegate.  I then use the viewDidLoad method to set the datasource and delegate for the other tableview controller:

 

self.tableView2.dataSource = self

self.tableView2.delegate = self

 

Is this how I should be acheiving this?

Powered by WPeMatico

About

You may also like...

Comments are closed.