How can I display the date and menu set in the tableview on the destination screen when the (Done) button is pressed? Sorry for the confusing explanation

  • Answer # 1

    Miso in front, but I asked my question

    I think takabosoft's response in

    is a hint.

    // From the navigation controller hierarchy (LowerViewController) to the hierarchy (UpperViewController)
    // Prepare a data storage box at the upper level,
    let upperView = self.navigationController? .topViewController as! UpperViewController
    upperView.box = lowerViewController element
    // For presentModal
    let parentView = self.presentingViewController? .parent as ParentViewController
    parentView.box = childViewController element

    You can send a combination of these, but
    Isn't it easy to save data in each view?
    For example, using Realm.