StoryBoard 2 导航控制器指向相同的视图 [英] StoryBoard 2 navigation controller pointing same View

查看:53
本文介绍了StoryBoard 2 导航控制器指向相同的视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道为什么这不起作用吗?

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.

推荐答案

如果有人感兴趣,我对这个问题的回答.

My answer for this problem if anyone is interested.

添加两个将启动我们感兴趣的视图的视图.这 2 个视图的相同文件:

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];
}

这篇关于StoryBoard 2 导航控制器指向相同的视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆