LemonCC
LemonCC
打印输出侧滑过程,item高度为 0
在 TabBarController 类中添加以下代码 ``` if (@available(iOS 13.0, *)) { UITabBarAppearance *standardAppearance = [[UITabBarAppearance alloc] init]; standardAppearance.backgroundColor = [UIColor whiteColor]; standardAppearance.shadowImage = [UIImage imageNamed:@"TabBar_Shadow"]; self.tabBar.standardAppearance = standardAppearance; } ```
感谢大佬,导航栏高度问题已经解决。 同时发现新的问题,导航栏控制器内的子控制器 View 的 view.safeAreaLayoutGuide.topAnchor 会往上偏移5个点,发现有灵动岛设计的顶部安全高度会多出来5个点(来自文章:https://useyourloaf.com/blog/iphone-14-screen-sizes/ ) 设备:iPhone 15 Pro Max 😷😷😷使用系统的 UI 调试了下,发现了个神奇的现象 navBar 的高度是 safeTop + navBarHeight = 103 但是控制器视图从 safeTop 的起始位置却仅为 97.667 结论: navBar 的高度 103,y 起点位置是...