StoryBoard 2 navigation controller pointing same View

半腔热情 提交于 2020-02-02 10:19:24

问题


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.


回答1:


My answer for this problem if anyone is 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];
}


来源:https://stackoverflow.com/questions/11684787/storyboard-2-navigation-controller-pointing-same-view

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!