GCKUIStyle 类
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
此类继承 NSObject。
强制刷新所有当前可见的视图,以便对样式所做的任何更改立即生效。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003e\u003ccode\u003eGCKUIStyle\u003c/code\u003e is a class used for managing the visual styling of Cast user interface elements.\u003c/p\u003e\n"],["\u003cp\u003eIt provides a singleton instance accessed via \u003ccode\u003esharedInstance\u003c/code\u003e for applying styles globally.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can customize UI elements through the \u003ccode\u003ecastViews\u003c/code\u003e property, which represents the root of the styling attributes tree.\u003c/p\u003e\n"],["\u003cp\u003eChanges made to styling can be applied immediately to visible views using the \u003ccode\u003eapplyStyle\u003c/code\u003e method.\u003c/p\u003e\n"]]],["The `GCKUIStyle` class, inheriting from `NSObject`, manages UI styling. Key actions include obtaining a singleton instance via the `sharedInstance` class method and applying style changes immediately using the `applyStyle` instance method to refresh visible views. The `castViews` property, a `GCKUIStyleAttributesCastViews` instance, serves as the root for the styling attributes tree, enabling customization. It was introduced in version 3.3.\n"],null,["# GCKUIStyle Class\n\n[Instance Methods](#pub-methods) \\| [Class Methods](#pub-static-methods) \\| [Properties](#properties) \nGCKUIStyle Class Reference \n\nOverview\n--------\n\nSince\n: 3.3\n\nInherits NSObject.\n\n|--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Instance Method Summary ----------------------- ||\n| (void) | - [applyStyle](/cast/docs/reference/ios/interface_g_c_k_u_i_style#ade27204981ce37498896956adbb99030) |\n| | Forces a refresh of all currently visible views, so that any changes to the styling will take effect immediately. [More...](#ade27204981ce37498896956adbb99030) |\n| ||\n\n|-----------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------|\n| Class Method Summary -------------------- ||\n| ([GCKUIStyle](/cast/docs/reference/ios/interface_g_c_k_u_i_style) \\*) | + [sharedInstance](/cast/docs/reference/ios/interface_g_c_k_u_i_style#aa7ba2a4ccd415eef08657ab365d27a98) |\n| | Returns the [GCKUIStyle](/cast/docs/reference/ios/interface_g_c_k_u_i_style) singleton instance. [More...](#aa7ba2a4ccd415eef08657ab365d27a98) |\n| ||\n\n|--------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|\n| Property Summary ---------------- ||\n| [GCKUIStyleAttributesCastViews](/cast/docs/reference/ios/interface_g_c_k_u_i_style_attributes_cast_views) \\* | [castViews](/cast/docs/reference/ios/interface_g_c_k_u_i_style#ad816f273cb87c2bc99aff34b85fc6361) |\n| | The root of the styling attributes tree. [More...](#ad816f273cb87c2bc99aff34b85fc6361) |\n| ||\n\nMethod Detail\n-------------\n\n|----------------------------------------------------------------------------------------|---|---|---|\n| + ([GCKUIStyle](/cast/docs/reference/ios/interface_g_c_k_u_i_style) \\*) sharedInstance | | | |\n\nReturns the [GCKUIStyle](/cast/docs/reference/ios/interface_g_c_k_u_i_style) singleton instance. \n\n|---------------------|---|---|---|\n| - (void) applyStyle | | | |\n\nForces a refresh of all currently visible views, so that any changes to the styling will take effect immediately.\n\nProperty Detail\n---------------\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------|\n| |---------------------------------------------------------------------------------------------------------------------------| | - ([GCKUIStyleAttributesCastViews](/cast/docs/reference/ios/interface_g_c_k_u_i_style_attributes_cast_views)\\*) castViews | | readnonatomicstrong |\n\nThe root of the styling attributes tree."]]