iOS15适配导航栏显示异常问题

iOS15适配导航栏显示异常问题

2023年7月14日发(作者:)

iOS15适配导航栏显⽰异常问题本⽂只记录 透明导航栏的Controller push ⾮透明导航栏时,导航出现⽩⾊背景异常的问题。UINavigationBar、UIToolBar配置iOS 15开始这两个属性需要⽤ UINavigationBarAppearance进⾏设置if (@available(iOS 15.0, *)) { UINavigationBarAppearance *appearance = [[UINavigationBarAppearance alloc] init]; oundImage = backImage; //图⽚ oundColor = olor; //背景⾊ Color = olor; //阴影 .... //等等其它属性,可以参考其他⽂章。 rdAppearance = appearance; EdgeAppearance = appearance; } //Xcode13 编译时 ,为了处理透明导航栏的Controller push ⾮透明导航栏时,导航出现⽩⾊背景异常的问题。 //原来设置导航栏的⽅式不能省略。 [tionBar setBackgroundImage:backImage forBarMetrics:UIBarMetricsDefault];

发布者:admin,转转请注明出处:http://www.yc00.com/web/1689264503a226423.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信