How can I get access to Introductory Overlay?

两盒软妹~` 提交于 2019-12-23 02:45:10

问题


I would like to customize introductory overlay in my iOS app with appearance() method, but I can't find a class responsible for this overlay in API. Do anyone know how can I get an access to introductory overlay?


回答1:


We currently don't expose the introductory overlay UI class so you can change the appearance. We have raised this with our engineering team.




回答2:


Cast SDK v3 for iOS introduced GCKUIStyle. This allows you to customize appearance of all Cast Views without having a reference to any. As it contains pretty much all properties for customization.

For Introductory Overlay specifically

GCKUIStyle *castStyle = [GCKUIStyle sharedInstance];

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

[castStyle applyStyle];


来源:https://stackoverflow.com/questions/38874475/how-can-i-get-access-to-introductory-overlay

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!