What is the best way to pass data from one view controller to another?
Suppose I push another view controller onto the present view controller. If I have to give some data to the view being pushed from the present view controller how do I do it?
Also how do I pass data from the pushed view to the earlier view?
So far I have done this by declaring functions in each controller and calling them. I find it dirty and want a cleaner way to do this. I don't want to use plists or sqlite as the data isn't that significant.