Search code examples
objective-cxcode4storyboard

StoryBoard 2 navigation controller pointing same View


Does anyone know why this does not work?

With this, just one tab bar load the view, the other make black screen. I Have tried without Navigation Controller, and Tab bar is correct and the other doesn't show the tabBar item in running mode.


Solution

  • My answer for this problem if anyone is interested.

    Add two views that will launch the view we are interested

    Add two views that will launch the view we are interested. Same file for this 2 views :

    @interface PushToAgenceViewController : UIViewController
    @end
    
    -(void) viewWillAppear:(BOOL)animated {
        [self performSegueWithIdentifier: @"pushName" sender: self];
    }