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() {
super.viewDidLoad()
menuItems = ["Dashboard", "Settings", "Notifications"]
tableView.reloadData()
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
}
You can’t perform that action at this time.