这里分两种情况要看你是怎么样跳转过来的如果是通过
self.performSegueWithIdentifier()
这种方法跳转过来的,这个时候一般是有navigationcontroller,可以使用下面的方法返回:
self.navigationController?.popViewControllerAnimated(true)
如果是通过
self.presentViewController(siteDetail, animated: true) {
}
这种方法跳转过来的,可以使用下面的方法返回:
self.dismissViewControllerAnimated(true, completion: nil)