I’ve got a VC (root) that calls a Modal Segue to a UINavigatioController (settings). The user can change what they want. How do I let the first VC (root) know that the changes are done. the UINav’s delegate is the (root) VC. any ideas to pass data back from a modal segue? cheers
I’ve got a VC (root) that calls a Modal Segue to a UINavigatioController (settings).
Share
Use your AppDelegate as a central communication hub that child VCs can call, and pass data to. Try the following:
First set up a shared delegate class method, and a method to pass data to a child VC, in your AppDelegate like so:
and so..
and then from the .m file of your UINavigationController (VC.m), you import your AppDelegate class and instantiate a shared delegate, which will essentially let you “call” the AppDelegate and send it data..