1

I have a navigation based view and the data entered in a view that is lower down in the hierarchy is then to be shown in a table-view in the root-view. How do I pass data entered in a subview to a superview??

tipycalFlow
  • 7,594
  • 4
  • 34
  • 45

1 Answers1

1

There is several ways to do that. You can create a singleton class which provide data to your UIViewControllers: Creating a Singleton Instance

Or you can use UINavigationControllerDelegate Protocol which include method called before and after UIViewController push.

gsempe
  • 5,371
  • 2
  • 25
  • 29