UITabBar items jumping on back navigation on iOS 12.1

后端 未结 12 991
北恋
北恋 2020-11-29 18:28

I have an iOS app with UITabBarController on a master screen, navigating to a detail screen hiding the UITabBarController with setting hidesB

12条回答
  •  庸人自扰
    2020-11-29 18:52

    here is the swift code

    extension UIApplication {
    open override var next: UIResponder? {
        // Called before applicationDidFinishLaunching
        SwizzlingHelper.enableInjection()
        return super.next
    }
    

    }

    class SwizzlingHelper {

    static func enableInjection() {
        DispatchQueue.once(token: "com.SwizzlingInjection") {
            //what to need inject
            UITabbarButtonInjection.inject()
        }
    

    } more information https://github.com/tonySwiftDev/UITabbar-fixIOS12.1Bug

提交回复
热议问题