【发布时间】:2016-12-16 21:37:10
【问题描述】:
我想在我的 iOS 应用程序中使用外观()方法自定义介绍性覆盖,但我在 API 中找不到负责此覆盖的类。有谁知道我怎样才能获得介绍性叠加层的访问权限?
【问题讨论】:
标签: ios chromecast google-cast
我想在我的 iOS 应用程序中使用外观()方法自定义介绍性覆盖,但我在 API 中找不到负责此覆盖的类。有谁知道我怎样才能获得介绍性叠加层的访问权限?
【问题讨论】:
标签: ios chromecast google-cast
我们目前不公开介绍性覆盖 UI 类,因此您可以更改外观。我们已经向我们的工程团队提出了这个问题。
【讨论】:
推出适用于 iOS 的 Cast SDK v3 GCKUIStyle。 这允许您自定义所有 Cast View 的外观,而无需引用任何内容。因为它包含了几乎所有的自定义属性。
GCKUIStyle *castStyle = [GCKUIStyle sharedInstance];
// customize Introductory Overlay
GCKUIStyleAttributesInstructions *instructionsCtrlStyle = [[castStyle castViews] instructions];
[instructionsCtrlStyle setBackgroundColor:[UIColor darkGrayColor]];
[instructionsCtrlStyle setButtonTextColor:[UIColor whiteColor]];
[castStyle applyStyle];
【讨论】: