TabBarController and TableViews
<p>I'm very new to iOS development but I can do tables and many stuff I guess. I haven't built anything just yet.
So I'm building a tabBar based application, with 2 tabs. On both of them I'm having TableViews. Both are identical but with different data loaded. I have two viewControllers that extend UIViewController. These viewControllers classes are assigned to Views that have tables on them and segmented controls.<a href="https://i.stack.imgur.com/7n7NB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7n7NB.png" alt="enter image description here"></a>
This is a screenshot just in case :)
I'm thinking to create UITableViewController that will work for both tables.
What I'm thinking is to have a custom initializer inside TableViewController where I'll pass tableName and data from my UIViewController. </p>

<p>So a newbie questions: Is this a right way to do this? What would you guys recommend? Sorry if it's too silly but I couldn't find solution to this question.</p>