I'm trying to implement a page-based navigation app using the "Next Page Relationship Segue" described in this tutorial.
In the app, both calendar views show the same type of content. The first one contains today's activities, and swiping presents the second one which contains tomorrow's activities.
I'd like to re-use the same code (i.e., same class) for both interface controllers. Then, when each loads, I need to know which one it is, in order to display the activities for today or tomorrow. Is there any way (such as a delegate method) to detect which one it is?
If there is no way to find out, is it the best way to create a parent class with all the code, and create sub-classes for today and tomorrow views?