Im new to swift and i would like pass an array from my container view to parent view.I have created the container view using story board, but the container view appears and disappears programatically as shown below:
//in parent view controller, inside viewDidLoad()
CameraView.isHidden = true
//in child view controller, on click of button,
let parent = self.parent as! DiaryEntryViewController
parent.CameraView.isHidden = true
I want the data selected to be shown whenever i click the button to display container view. I don't know how to pass values from child view controller to parent view controller and where can I should be able to access the values.These values need to accessed inside a function which is called on click of another button inside parent view controller.
