iOS适用于所有设备计算tabbar height的方法

tababrHeight = (tabBar.frame.size.height - (UIApplication.shared.keyWindow?.safeAreaInsets.bottom ?? 34))

参考: cocoa touch - What's the height of a UITabBar on iOS 8, iOS 9, iOS 10, and iOS 11? - Stack Overflow

你可能感兴趣的:(iOS,ios,xcode)