使用 TabBar 问题限制到底部布局指南

2023-09-11移动开发问题
21

本文介绍了使用 TabBar 问题限制到底部布局指南的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我有基于 UITabBarController 的 iPad 应用程序,第一个选项卡上有 containerView.containerView 与底部布局指南有标准的垂直间距.当我点击第二个选项卡然后返回到第一个选项卡时,我的容器向下移动了 56 pts,即 tabBar 的高度,然后被 tabBar 覆盖.

I have UITabBarController based iPad app with containerView on the first tab. The containerView has standard vertical spacing to bottom layout guide. When I tap on the second tab and then go back to the first tab, my container moves down by 56 pts, the height of the tabBar and is then covered by the tabBar.

我制作了 3 个屏幕截图来说明这一点.第三个屏幕截图显示了选项卡之间跳转后隐藏的 tabBar.看起来底部布局指南已经走到了边缘.这是怎么回事?

I made 3 screenshots to illustrate that. The third screenshot shows hidden tabBar after the jump between tabs. It looks like the bottom layout guide went down to the edge. What is going on here?

推荐答案

我不确定这里发生了什么,但我认为这可能会有所帮助:

I'm not sure about what happened here, but I think that this could help:

在 UIViewController 属性中取消选中底部栏下

Uncheck Under bottom bar in your UIViewController properties

希望这会有所帮助!

这篇关于使用 TabBar 问题限制到底部布局指南的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

硬件音量按钮更改应用程序音量
Hardware Volume buttons change in app volume(硬件音量按钮更改应用程序音量)...
2024-08-12 移动开发问题
10

恢复游戏 cocos2d
Resume game cocos2d(恢复游戏 cocos2d)...
2024-08-12 移动开发问题
6

Cocos2D + 仅禁用 Retina iPad 图形
Cocos2D + Disabling only Retina iPad Graphics(Cocos2D + 仅禁用 Retina iPad 图形)...
2024-08-12 移动开发问题
10

[ios.cocos2d+box2d]如何禁用自动旋转?
[ios.cocos2d+box2d]how to disable auto-rotation?([ios.cocos2d+box2d]如何禁用自动旋转?)...
2024-08-12 移动开发问题
7

从 Documents 目录存储和读取文件 iOS 5
Storing and reading files from Documents directory iOS 5(从 Documents 目录存储和读取文件 iOS 5)...
2024-08-12 移动开发问题
9

如何在 cocos2d 环境之外实现 cocos2d 游戏的虚拟摇杆?
How can I implement a virtual joystick for a cocos2d game outside the cocos2d environment?(如何在 cocos2d 环境之外实现 cocos2d 游戏的虚拟摇杆?)...
2024-08-12 移动开发问题
13