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??
Asked
Active
Viewed 321 times
1 Answers
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