Passing data over views
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??
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.
精彩评论