             if let indexPath = self.tableView.indexPathForSelectedRow() {
                 let type = types[indexPath.row]
                 (segue.destinationViewController as OverlayExampleVC).type = type
+                (segue.destinationViewController as UIViewController).title = exampleDescriptions[indexPath.row]
             }
         }
     }


class MasterVC: UITableViewController {

    var objects = ["Wait overlay", "Wait overlay with text", "Overlay with text only", "Annoying notification on top"]
    var types: Array<OverlayExampleVC.ExampleType> = [.Wait, .WaitWithText, .TextOnly, .AnnoyingNotification]

    override func awakeFromNib() {

    }

    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return exampleDescriptions.count
    }

    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as UITableViewCell

        let object = exampleDescriptions[indexPath.row]
        cell.textLabel.text = object
        return cell
    }
