class SelectTag: UIViewController {
var selectedTag = [0,1,2]
@IBAction func endSelectTag(_ sender: Any) {
self.navigationController?.popViewController(animated: true)
}
}我可以在运行popViewController之前添加数据吗?
我试过了
(self.parent as! MyPage).seleteTag = seletedTag
Could not cast value of type UINavigationController to MyPagehttps://stackoverflow.com/questions/51439975
复制相似问题