iPhone 应用程序进入屏幕

发布于 2024-08-25 05:42:33 字数 253 浏览 9 评论 0原文

我正在制作一个底部有 UITabBar 的应用程序。我想做一个“输入屏幕”。基本上,当应用程序启动时,现在会出现输入屏幕,但标签栏仍然显示在底部。因此,如果用户按下选项卡栏上的选项卡......然后返回到第一个屏幕,输入按钮仍然存在。有人知道解决这个问题的好方法吗?我打算尝试拥有它,以便如果用户选择另一个选项卡,输入屏幕就会消失。要么是这样,要么只是对所有内容都有全屏视图,然后当按下回车键时,使其接近全屏视图。虽然,我真的不知道如何去做其中任何一个。有什么想法吗?

克里斯

I'm in the process of making an app that has a UITabBar at the bottom of it. I want to make an "Enter screen." Basically, when the app starts up, right now the enter screen appears, but the tab bar still shows at the bottom. So if the user presses a tab on the tabbar..and then goes back to the first screen, the enter button is still there. Anybody know a good way around this? I was gonna try to have it so that if the user selected another tab, the enter screen would just go away. Either that or just to have a full screen view over everything and then when enter is pressed, have it close to full screen view. Although, I don't really know how to go about doing either of those. Any ideas?

Chris

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

不必了 2024-09-01 05:42:33

您可以在 UIViewController 子类上使用方法 -viewWillAppear 来隐藏您的输入屏幕。每次在新选项卡上选择一个选项卡时,即在显示该选项卡之前,都会调用它。

You can use the method -viewWillAppear on your UIViewController subclass to hide your enter screen. It is called every time a tab is selected, on the new tab, just before it is displayed.

無處可尋 2024-09-01 05:42:33

如果我理解正确的话...您只想要一个标题屏幕,当您的应用程序启动时,该屏幕在该会话期间不再显示?

如果是这样,只需创建一个文件,该文件是您希望屏幕显示的 320x480 图像...将其另存为 PNG,并将其命名为 Default.png。

该图像将在您的应用程序加载时显示,然后在您的应用程序准备就绪时消失。不会显示任何选项卡栏,并且您无需处理任何额外的 ViewController。

If I understand correctly... you just want a title screen when your app starts up that never shows again during that session?

If so, just create a file that is a 320x480 image of what you want the screen to look like... save it as a PNG, and name it Default.png.

This image will be shown while your app is loading, and then will disappear when your app is ready to go. No tab bar will show, and you won't need to mess with disposing of any extra ViewControllers.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文