Skip to content
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

iPad OS18下需要适配,急盼 #292

Open
beiguancyc opened this issue Sep 20, 2024 · 5 comments
Open

iPad OS18下需要适配,急盼 #292

beiguancyc opened this issue Sep 20, 2024 · 5 comments

Comments

@beiguancyc
Copy link

在iPad OS18下外观会发生大变化,同时点击后hidesBottomBarWhenPushed也没有作用了,希望能早日更新,不胜感谢

@SupenBook
Copy link

+1

@buginux
Copy link

buginux commented Oct 12, 2024

同样碰到问题了,有大神适配下吗?

@spirej
Copy link

spirej commented Oct 16, 2024

+1

@feixue299
Copy link

feixue299 commented Oct 18, 2024

iOS 18 ipad的层级改变了
可以自己把tabbar加上去

  • 在ESTabBarController类中
if UIDevice.current.userInterfaceIdiom == .pad {
      if #available(iOS 18.0, *) {
          traitOverrides.horizontalSizeClass = .compact
          view.addSubview(tabBar)
      }
}

涉及旋转的话,使用autolayout布局

@Ave838
Copy link

Ave838 commented Oct 18, 2024

iOS 18 ipad的层级改变了 可以自己把tabbar加上去

  • 在ESTabBarController类中
if UIDevice.current.userInterfaceIdiom == .pad {
      if #available(iOS 18.0, *) {
          traitOverrides.horizontalSizeClass = .compact
          view.addSubview(tabBar)
      }
}

涉及旋转的话,使用autolayout布局

完美!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants