override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if segue.identifier == "GMNewPostControllerSegueIdentifier"
{
let svc = segue.destination as? UINavigationController
let vc: GMNewPostController = svc?.topViewController as! GMNewPostController
}
}
@IBAction func newPostButtonAction(_ sender: UIButton) {
performSegue(withIdentifier: "GMNewPostController", sender: self)
}
我不想从我的故事板中拖放,因为我在vc2中有一个表格视图。
答案 0 :(得分:0)