Skip to content

Instantly share code, notes, and snippets.

View MenuViewController.swift
class MenuViewController:UIViewController, UITableViewDataSource,UITableViewDelegate{
@IBOutlet weak var tableView: UITableView!
var menuItems = [String]()
override func viewDidLoad() {
menuItems = ["Dashboard", "Settings", "Notifications"]
View ViewController.swift
class ViewController:UIViewController, KeyboardObserver{
//@IBOutlet weak var scrollViewOutlet:UIScrollView!
var container:UIView{
return self.view
//If container is a scrollview, create an outlet for scrollview and return it like below
//return self.scrollViewOutlet