andreamazz/AMScrollingNavbar
在 GitHub 查看How to keep nav collapsed / expanded with its original status when back?
Open
#265 创建于 2017年8月17日
8 评论 (8 评论)0 反应 (0 反应)0 负责人 (0 负责人)Swift6,074 star (6,074 star)632 fork (632 fork)batch import
help wanted
描述
贡献者指南
- 技术栈
- swiftios
- 领域
- mobile
- 议题类型
- feature
- 难度面向新贡献者的预计实现难度,1 表示很小改动,5 表示专家级工作。
- 3
- 预计时间有经验贡献者完成调查、实现、测试并准备 pull request 的粗略时间范围。
- 1-3 hours
- 活动状态议题当前的可参与程度:新鲜、活跃、陈旧、阻塞或等待维护者输入。
- stale
- 清晰度议题是否清楚说明期望改动、验收标准和下一步。
- unclear
- 前置要求
- iOS developmentUIScrollView basics
- 新手友好度1-100 的估计分数,表示该议题对首次贡献者的友好程度。
- 30
- 研究方向
- The issue asks how to persist the collapsed/expanded state of the navigation bar when navigating back. The library AMScrollingNavbar resets the navbar state on each view appear. A solution would involve storing the navbar state (e.g., a boolean flag) in the view controller or a shared manager, and restoring it in viewWillAppear. Inspect the library's source code, particularly the AMScrollingNavbarManager class, to understand how the navbar scrolls and where to hook in state persistence. Review the issue comments for any maintainer suggestions.