11 2021 档案

摘要:iOS15 导航栏在静止时,设置的图片会透明,以及消失。 解决如下 if (@available(iOS 13.0, *)) { UINavigationBarAppearance *appearance = [UINavigationBarAppearance new]; UIImage *bac 阅读全文
posted @ 2021-11-16 11:48 ~道一~ 阅读(476) 评论(0) 推荐(0) 编辑
摘要:某些界面需要隐藏home条,防止误触导致页面返回 - (UIRectEdge)preferredScreenEdgesDeferringSystemGestures { return UIRectEdgeBottom; // 代表底部的home条延迟手势。如果其他部位也需要可以直接设置成 UIRec 阅读全文
posted @ 2021-11-01 16:52 ~道一~ 阅读(80) 评论(0) 推荐(0) 编辑
摘要:一、从坐标(0,0)从导航栏下面算起 self.edgesForExtendedLayout=UIRectEdgeBottom; 二、导航栏是否半透明 self.navigationController.navigationBar.translucent = NO; 三、导航栏隐藏 - (void) 阅读全文
posted @ 2021-11-01 16:44 ~道一~ 阅读(68) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示