0
当ViewController A中的按钮被点击时,TableViewController B显示出来。用户在B中选择一个项目,然后返回到A.我使用下面的代码从B返回A.但是,如何将所选项目([Int: String])
传递给A?如何使用swift中的参数返回之前的视图控制器
navigationController?.popViewControllerAnimated(true)
下面是代码从A
let storyBoard : UIStoryboard = UIStoryboard(name: "Main", bundle:nil)
let nextViewController = storyBoard.instantiateViewControllerWithIdentifier("categories") as! CategoryListViewController
self.presentViewController(nextViewController, animated:true, completion:nil)
如果您需要任何帮助,请告诉我? –