如何在iOS中设置GCKUIMiniMediaControlsViewController的样式? [英] How to style GCKUIMiniMediaControlsViewController in iOS?

查看:48
本文介绍了如何在iOS中设置GCKUIMiniMediaControlsViewController的样式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将当前的Cast SDK升级到V3,并希望使用内置的UI组件并删除不推荐使用的功能。

I'm upgrading current Cast SDK to V3 and want to use build-in UI components and remove deprecated functions.

当前, GCKUIMiniMediaControlsViewController 具有白色/浅色主题,但我想将其更改为较暗的主题。但是,我找不到可用于更改样式的任何函数/专家/协议。文档向您的iOS应用添加高级Cast v3功能说:

Currently, the GCKUIMiniMediaControlsViewController has a white/light theme but I'd like to change it to a darker theme. However, I couldn't find any function/propert/protocol that I can use to change the style. The document Add Advanced Cast v3 Features to your iOS App says:


Cast框架小部件在
UIKit中支持Apple UIAppearance协议,以更改小部件在应用程序中的外观,例如
按钮的位置或边框。使用此协议为
Cast框架小部件设置样式,以匹配现有的应用样式。

The Cast framework widgets supports the Apple UIAppearance Protocol in UIKit to change the appearance of the widgets across your app, such as the position or border of a button. Use this protocol to style the Cast framework widgets to match an existing apps styling.

这让我感觉可以更改外观,但我不太确定 Cast框架小部件在UIKit中支持Apple UIAppearance协议是什么意思:(

This makes me feel like I can change the appearance but I'm not quite sure what does The Cast framework widgets supports the Apple UIAppearance Protocol in UIKit mean :(

找到与Cast SDK的UI组件也相关的先前问题。我如何

I also find a previous question which also related to Cast SDK's UI component. How can I get access to Introductory Overlay?

有人可以帮我如何更改 GCKUIMiniMediaControlsViewController 的样式吗?

Can anyone help me how to change the style for GCKUIMiniMediaControlsViewController?

推荐答案

您需要按照Apple的说明使用UIAppearance协议,请注意,您对样式所做的任何更改都会在整个应用。

You need to follow Apple's instructions on using the UIAppearance protocol. Note that any changes you make to the styling will happen across the entire app.

这篇关于如何在iOS中设置GCKUIMiniMediaControlsViewController的样式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆