UIAppearance 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
用于设置视图外观样式的 UIKit 代理类。
[Foundation.Model]
[Foundation.Protocol]
[Foundation.Register("Microsoft_iOS__UIKit_UIAppearance", false)]
public class UIAppearance : Foundation.NSObject, IDisposable, UIKit.IUIAppearance
[Foundation.Model]
[Foundation.Protocol]
[Foundation.Register("Microsoft_MacCatalyst__UIKit_UIAppearance", false)]
public class UIAppearance : Foundation.NSObject, IDisposable, UIKit.IUIAppearance
[Foundation.Model]
[Foundation.Protocol]
[Foundation.Register("Microsoft_tvOS__UIKit_UIAppearance", false)]
public class UIAppearance : Foundation.NSObject, IDisposable, UIKit.IUIAppearance
[<Foundation.Model>]
[<Foundation.Protocol>]
[<Foundation.Register("Microsoft_iOS__UIKit_UIAppearance", false)>]
type UIAppearance = class
inherit NSObject
interface IUIAppearance
interface INativeObject
interface IDisposable
[<Foundation.Model>]
[<Foundation.Protocol>]
[<Foundation.Register("Microsoft_MacCatalyst__UIKit_UIAppearance", false)>]
type UIAppearance = class
inherit NSObject
interface IUIAppearance
interface INativeObject
interface IDisposable
[<Foundation.Model>]
[<Foundation.Protocol>]
[<Foundation.Register("Microsoft_tvOS__UIKit_UIAppearance", false)>]
type UIAppearance = class
inherit NSObject
interface IUIAppearance
interface INativeObject
interface IDisposable
- 继承
- 派生
- 特性
- 实现
注解
该 UIAppearance 类是按需创建的代理,用于设置特定类的样式视图。
UIAppearance支持该框架作为设置特定类的所有实例的样式或设置特定层次结构中包含的特定类的所有实例的样式。
可以通过访问该类的静态 Appearance 属性来获取特定元素的全局代理。
若要获取特定类的 UIAppearance 代理,应调用 AppearanceWhenContainedIn(Type[]) 该方法。 此方法采用对象的变量列表 Type ,它表示应用样式必须存在的容器集。 可以使用此模式将样式应用于元素。
以下类同时 Appearance 公开属性和 AppearanceWhenContainedIn(Type[]) 方法:
- AVRoutePickerView :
- GKTurnBasedMatchmakerViewController :
- GLKView :
- HMCameraView :
- MKAnnotationView :
- MKMapView :
- MKMarkerAnnotationView :
- MKOverlayView :
- MKPinAnnotationView :
- MKScaleView :
- MPVolumeView :
- MTKView :
- PdfThumbnailView :
- PdfView :
- PHLivePhotoView :
- SCNView :
- SKView :
- UIActivityIndicatorView :
- UIBarButtonItem :
- UIBarItem :
- UIButton :
- UICollectionReusableView :
- UICollectionView :
- UICollectionViewCell :
- UIControl :
- UIImageView :
- UIInputView :
- UILabel :
- UINavigationBar :
- UIPageControl :
- UIPopoverBackgroundView :
- UIProgressView :
- UIScrollView :
- UISearchBar :
- UISegmentedControl :
- UIStackView :
- UITabBar :
- UITabBarItem :
- UITableView :
- UITableViewCell :
- UITableViewHeaderFooterView :
- UITextField :
- UITextView :
- UIView :
- UIVisualEffectView :
- UIWindow :
构造函数
| 名称 | 说明 |
|---|---|
| UIAppearance(NativeHandle) |
创建非托管对象的托管表示形式时使用的构造函数。 由运行时调用。 |
| UIAppearance(NSObjectFlag) |
要调用派生类的构造函数,以跳过初始化,并仅分配对象。 |
属性
| 名称 | 说明 |
|---|---|
| AccessibilityAttributedUserInputLabels |
用于设置视图外观样式的 UIKit 代理类。 (继承自 NSObject) |
| AccessibilityRespondsToUserInteraction |
用于设置视图外观样式的 UIKit 代理类。 (继承自 NSObject) |
| AccessibilityTextualContext |
用于设置视图外观样式的 UIKit 代理类。 (继承自 NSObject) |
| AccessibilityUserInputLabels |
用于设置视图外观样式的 UIKit 代理类。 (继承自 NSObject) |
| Class |
用于设置视图外观样式的 UIKit 代理类。 (继承自 NSObject) |
| ClassHandle |
此类的 Objective-C 类句柄。 (继承自 NSObject) |
| DebugDescription |
用于设置视图外观样式的 UIKit 代理类。 (继承自 NSObject) |
| Description |
用于设置视图外观样式的 UIKit 代理类。 (继承自 NSObject) |
| Handle |
处理(指针)到非托管对象表示形式。 (继承自 NSObject) |
| IsDirectBinding |
获取或设置一个值,该值指示此实例是否使用直接 Objective-C 绑定。 (继承自 NSObject) |
| IsProxy |
用于设置视图外观样式的 UIKit 代理类。 (继承自 NSObject) |
| RetainCount |
用于设置视图外观样式的 UIKit 代理类。 (继承自 NSObject) |
| Self |
用于设置视图外观样式的 UIKit 代理类。 (继承自 NSObject) |
| Superclass |
用于设置视图外观样式的 UIKit 代理类。 (继承自 NSObject) |
| SuperHandle |
已过时.
用于表示此 NSObject基类中方法的句柄。 (继承自 NSObject) |
| Zone |
用于设置视图外观样式的 UIKit 代理类。 (继承自 NSObject) |
方法
运算符
| 名称 | 说明 |
|---|---|
| Equality(UIAppearance, UIAppearance) |
确定两个 UIAppearance 实例是否具有相同的本机句柄。 |
| Inequality(UIAppearance, UIAppearance) |
确定两个 UIAppearance 实例是否具有不同的本机句柄。 |