Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在弹出框标题栏上有一些按钮,它们是深色的,所以我想将弹出框标题栏颜色更改为与导航栏颜色相同,我该怎么办?您将在弹出窗口中看到灰色的标题栏,我该怎么做?
我不确定您的代码是什么样的,但从屏幕截图中我假设您将 UINavigationController 呈现为 UIPopoverController 的内容。如果是这种情况,您需要在 UINavigationController 的 navigationBar 属性上设置 tintColor 或 barStyle 属性。
如果这会造成问题,您可能必须将 UINavigationController 嵌套在另一个视图中(我知道这很疯狂)如果它嵌套在白色视图中,它应该使用 UINavigationBar 的默认样式。