In my storyboard, i have two UIViewControllers both using the class CustomViewController.
From the viewDidLoad function of CustomViewController.m, how can I determine which UIViewController in my storyboard is calling this class? For example:
- (void)viewDidLoad
{
if(CALLED_FROM_VC1_IN_STORYBOARD)
{
// load from data feed 1
}
else
{
// load from data feed 2
}
}
What should I replace CALLED_FROM_VC1_IN_STORYBOARD
with?