Two UITableViews One UIViewController

That must be chocolate ice-creme

Image for post
Image for post
Photo by Tim Graf on Unsplash

Prerequisites:

Terminology

The challenge

Image for post
Image for post

Setting up the storyboard

Image for post
Image for post

The code

The outlets and data

Image for post
Image for post
Click for Gist

The viewDidLoad function

Image for post
Image for post
Click for Gist

The UITableViewDataSource

Image for post
Image for post
Click for Gist
Image for post
Image for post
Click for Gist

Conclusion

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store