-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug]:iPadOS 18 上 无法设置tabbar到底部 #615
Comments
请问这个解决了吗 |
没有解决 |
那你们现在咋处理的,我也遇到了,根据你写的方法,下面tabitem 直接消失不见 |
换库吧 这都没人维护了 |
暂时降级xcode打包解决审核问题,不清楚后面苹果会不会开放类似关闭的api |
自己找找类里重写的tabbar 然后设置上去 类似
18的api改了,替换上去不生效,☀️🐶 |
不是太明白你这个 [self.view addSubview:self.replaceTabbar]; |
好像还是有点问题。显示一下然后会自动隐藏 |
我这里没问题,可能其他地方的代码把_UITabContainerView这个视图显示出来了,挡住了手动add 的 tabbar |
确实可以了。另一个项目没问题 |
_UITabContainerView本身就是用来作为TabBar父视图的, 为啥要隐藏... |
在CYLTabBarController.m中 添加如下代码
(void)viewDidLoad {
[super viewDidLoad];
if (@available(iOS 18.0, *))
{
if (UIDevice.currentDevice.userInterfaceIdiom == UIUserInterfaceIdiomPad)
{
self.traitOverrides.horizontalSizeClass = UIUserInterfaceSizeClassCompact; //TAB BAR ON BOTTOM
}
}
无法生效,而且tabitem 消失不见
The text was updated successfully, but these errors were encountered: