NSNotificationCenter.defaultCenter()

NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(ViewController.setup1), name: "setup", object: nil)
func setup1() {
print("this is setup 1")
}

NSNotificationCenter.defaultCenter().postNotificationName("setup", object: nil)