【问题标题】:How can I get access to Introductory Overlay?如何访问介绍性覆盖?
【发布时间】:2016-12-16 21:37:10
【问题描述】:

我想在我的 iOS 应用程序中使用外观()方法自定义介绍性覆盖,但我在 API 中找不到负责此覆盖的类。有谁知道我怎样才能获得介绍性叠加层的访问权限?

【问题讨论】:

    标签: ios chromecast google-cast


    【解决方案1】:

    我们目前不公开介绍性覆盖 UI 类,因此您可以更改外观。我们已经向我们的工程团队提出了这个问题。

    【讨论】:

      【解决方案2】:

      推出适用于 iOS 的 Cast SDK v3 GCKUIStyle。 这允许您自定义所有 Cast View 的外观,而无需引用任何内容。因为它包含了几乎所有的自定义属性。

      专门针对Introductory Overlay

      GCKUIStyle *castStyle = [GCKUIStyle sharedInstance];
      
      // customize Introductory Overlay
      GCKUIStyleAttributesInstructions *instructionsCtrlStyle = [[castStyle castViews] instructions];
      [instructionsCtrlStyle setBackgroundColor:[UIColor darkGrayColor]];
      [instructionsCtrlStyle setButtonTextColor:[UIColor whiteColor]];
      
      [castStyle applyStyle];
      

      【讨论】:

        猜你喜欢
        • 2017-08-23
        • 1970-01-01
        • 2014-03-06
        • 2019-04-26
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-06-18
        • 1970-01-01
        相关资源
        最近更新 更多