xcode ios模拟器不显示更新的选项卡栏控制器 [英] xcode ios simulator does not show updated tab bar controller

查看:54
本文介绍了xcode ios模拟器不显示更新的选项卡栏控制器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个包含选项卡栏控制器的ios应用程序,该选项卡控制器具有用于3个不同页面的三个按钮.但是,当我运行该程序时,最初的几秒钟正确显示了该程序,但随后将其更改为简单的选项卡栏控制器.

I am trying to create an ios app that consists of a tab bar controller with three buttons for 3 different pages. However, when I run the program the first few seconds shows it correctly but then it changes to a simple tab bar controller.

左边是我的标签栏控制器,右边是模拟器显示的

推荐答案

您编辑了错误的故事板.您已经编辑了启动屏幕情节提要.因此,在启动过程中,它将显示您的3-tab界面.但是随后该应用程序开始运行,并使用了主故事板.您没有编辑该模板,因此我们回到了普通的"Tabbed应用程序"模板.

You've edited the wrong storyboard. You have edited the Launch Screen storyboard. So during launch it shows your 3-tab interface. But then the app starts running and the Main storyboard is used. You didn't edit that one, so we are back to the plain vanilla Tabbed App template.

您应该做的是编辑主故事板.

What you should have done was to edit the Main storyboard.

这篇关于xcode ios模拟器不显示更新的选项卡栏控制器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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