Tencent / QMUI_iOS

QMUI iOS——致力于提高项目 UI 开发效率的解决方案
http://qmuiteam.com/ios
Other
7.08k stars 1.38k forks source link

设置LargeTitle后,进入页面,不会自动显示大标题,需要下拉才能显示 #1235

Open WOHANGO opened 3 years ago

WOHANGO commented 3 years ago

Bug 表现 控制器是集成QMUICommonTableViewController,页面使用QMUIStaticTableViewCellDataSource布局,然后在setupNavigationItems设置大标题时,出现问题,进入控制器不会自动显示大标题(见视频的“设置”页),当设置[self.navigationController.navigationBar sizeToFit]时,大标题小标题同时出现(见视频的“个人资料”页)

` /// 设置页代码:

` /// 个人资料页代码:

截图

https://user-images.githubusercontent.com/20496270/115817721-fc66a100-a42d-11eb-8fe4-998a088cb9ae.mov

如何重现 QMUIDemo在QDStaticTableViewController下引入也会出现问题 image

其他信息

WOHANGO commented 3 years ago

问题已更新,QMUIDemo在QDStaticTableViewController下也会出现同样问题

Rico358097990 commented 3 years ago

同样遇到

WOHANGO commented 3 years ago

@Rico358097990 请问有没有解决方法?

Rico358097990 commented 3 years ago

@WOHANGO 没有,在13上是ok的,14上就不行了。 @MoLice 抱歉打扰,need some help

WOHANGO commented 3 years ago

@MoLice +1

Rico358097990 commented 3 years ago

@WOHANGO

self.navigationController?.navigationBar.prefersLargeTitles = true
self.navigationController?.navigationBar.sizeToFit()
WOHANGO commented 3 years ago

@Rico358097990 你这方法我试了,会出现两个标题:大标题和小标题同时出现 @MoLice 打扰了,有空帮我看看,或者是不是我这边的问题,谢谢