I have a UITabViewController that is responsible for managing multiple views (and navigation controllers). Views were linked in the Storyboard by pressing Ctrl, clicking on the UITabViewController and selecting the “segue relation” to other views.
The problem is that prepareForSegue doesn't work at all in the UITabViewController. The code did not touch anything. NSLog does not display when switching views, clicking on the tab bar.
CustomTabViewController.m
#pragma mark - Navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
NSLog(@"Here..");
NSLog(@"%@", [segue destinationViewController]);
}
Does anyone know why this is happening? Thanks
source
share