Skip to content

tonySwiftDev/UITabbar-fixIOS12.1Bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

UITabbar-fixIOS12.1Bug

Problem:

in ios12.1 , when popViewController animate, during navigation controller go back to UITabbarController, the item bar position is up. and it will take 1 to 2 seconds for the item bar to be normal.

tip:

the solution is just for fix ios12.1 bug. and It's better for swift project.

#How to do:

  • You just add the file to you project.
  • on the top of the file (UITabbar+fixIOS12.1Bug.swift), you will see a constant,kIPhoneXSeriesTabbarButtonHeight, you modify accroding to what value you use for tabbarr Height on the iPhone x series .example 78.0.you modify to let kIPhoneXSeriesTabbarButtonHeight: CGFloat = 78.0
  • just run your project

Thanks for you:

Thanks for you coming . If it work for you , please please please give me a start on the top right corner.

##问题:

iOS12.1 popViewControllerAnimated,UINavigationController返回时,item出现错位,文字消失,图标及小圆点出现位置偏移。过1-2秒才恢复到正常位置

X系列 tabbar 位置错乱

iOS12.1 tabbar 每次出现icon会跳一下, 之前没有

##如何做: 你只要下载这个文件放到你的项目中,就可以了,不用其他操作。

因为这个方案是运行时注入,并不清楚你在iphoneX系列(X,Xs,XR,Xs Max)的机型中,使用的tabbar 高度.所以需要你在 文件顶部 找到这个常量kIPhoneXSeriesTabbarButtonHeight,然后更改为你实际项目中的iphoneX系列的tabbar高度

另外这是一个swift文件,所以是为 swift项目准备的。

如果对你有帮助,请在右上角给个,非常感谢

About

UITabbar,ios12.1,swift,position error

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages