ios - 即使在 iOS 中导航屏幕时如何始终显示 View Controller ?

标签 ios objective-c swift uinavigationcontroller

我有一个可以最小化的音乐播放器 View Controller 。感谢 LNPopupController[ https://github.com/LeoNatan/LNPopupController] .

一切正常,但我不知道如何让这个音乐播放器 View Controller 保持在顶部,即使当用户导航到其他屏幕时(即使主导航 Controller 推送另一个 View Controller )。顺便说一下,该应用不使用标签栏 Controller 。

enter image description here

那么,有没有办法实现这种想法呢?同样,将最小化 View Controller 粘贴到应用程序的每个屏幕之上?

最佳答案

这里是框架的开发者。

如果您从导航 Controller 显示弹出栏,它会出现在所有推送的 Controller 上。对于标签栏 Controller 也是如此。

如果您需要为所有 Controller 都安装它,这并不容易。一种方法是让您的整个应用程序场景显示为 View Controller 的子 Controller ,并让该 Controller 显示弹出栏。这是使其工作的困难方法,不推荐。它有很多问题。

弹出 Controller 并不意味着一直出现在屏幕上。它旨在实现与 Apple 类似的功能。

关于ios - 即使在 iOS 中导航屏幕时如何始终显示 View Controller ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38811311/

相关文章:

iphone - 我应该如何为 iPhone 实现可编辑的丰富文档 View ?

objective-c - Objective-C 中 dealloc 的首选编码风格是什么?

ios - 将 iBeacons 集成到 CoreLocation 室内项目中

ios - Core Data merge By Property Store Trump Merge Policy Type,什么意思?

swift - 在 Swift 中更新 TabBar Badge 无法转换 UINavigationController 类型的值

ios - 管理 AudioKit 生命周期的正确方法是什么?

iOS/Uber 集成 : link_text and partner_deeplink not working in testing

ios - 在不为 Apple 的企业开发人员计划重新编译的情况下分发 ipa?

ios - iOS 上通过 Core Data 的离线模式

objective-c - 用于重新排列空间的 API