I have 2 ViewControllers
ViewControllerA
,ViewControllerB
ViewControllerB
is to show popUpView
and another is my mainViewController
.
When I press cancel button in popUpView
I dismiss the present ViewController
(i.e ViewControllerB
) and try to pass some data to ViewControllerA
.
I tried to print value in viewWillAppear()
function of ViewControllerA
but after dismiss I am not receiving any data from ViewControllerB
.
Can anyone help me out how to solve this?