class ProfileTableViewController: UITableViewController { // this would be the parent view controller weak var delegate : ProfileTableViewControllerDelegate?
// ViewController.swift class ViewController: UIViewController { var tableViewController : ProfileTableViewController?