if([[segue identifier] isEqualToString:@"dischargeSegue"])
{
UITabBarController *dc = [segue destinationViewController];
dischargeView *discharge = (dischargeView *)[[dc.viewControllers objectAtIndex:0] objectAtIndex:0];
discharge.delegate = self;
}
I’m trying to set the delegate for the initial view of a tab view controller. This is what I was trying, but get the following error: unrecognized selector sent to instance

Use –