添加了一个子视图控制器,如下所示:
// ParentViewController
if ((self.delegate?.showPopupSymtomDetailViewController(view: viewController, receiver: self)) != nil)
{
}
// ChildViewController
//MARK: PopUpCode
func popUpAt(parentViewController:UIViewController)
{
parentViewController.addChildViewController(self)
parentViewController.view.addSubview(self.view)
self.view.frame = parentViewController.view.frame
self.didMove(toParentViewController: parentViewController)
}
如何将数据发送回 parentViewController,请指导。