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];