bottomBarTotalHeight static method
获取底部TabBar高度+底部安全距离高度
返回结果: double TabBar高度 + 底部安全区(单位: dp)
- iOS: kBottomNavigationBarHeight + 底部安全区
- Android: kBottomNavigationBarHeight + 自适应底部安全区
示例:
double tabBarTotal = DScreenUtil.bottomBarTotalHeight();
Implementation
static double bottomBarTotalHeight() {
return kBottomNavigationBarHeight + bottomSafeHeight();
}