UIAppearance Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Proxy class for styling the appearance of UIKit views.
[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
- Inheritance
- Derived
- Attributes
- Implements
Remarks
The UIAppearance class is a proxy that is created on demand to style views of a particular class. The UIAppearance framework is supported either as a way of styling all instances of a particular class or by styling all instances of a particular class that are contained in specific hierarchy.
You can get the global proxy for a particular element by accessing the static Appearance property of that class.
To obtain the UIAppearance proxy for a particular class, you should invoke the AppearanceWhenContainedIn(Type[]) method. This method takes a variable list of Type objects and it represents the set of containers that must be present for the style to be applied. You can use this as the pattern used to apply the style to your elements.
The following classes expose both the Appearance property and the AppearanceWhenContainedIn(Type[]) method:
- 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 :
Constructors
| Name | Description |
|---|---|
| UIAppearance(NativeHandle) |
A constructor used when creating managed representations of unmanaged objects. Called by the runtime. |
| UIAppearance(NSObjectFlag) |
Constructor to call on derived classes to skip initialization and merely allocate the object. |
Properties
| Name | Description |
|---|---|
| AccessibilityAttributedUserInputLabels | (Inherited from NSObject) |
| AccessibilityRespondsToUserInteraction | (Inherited from NSObject) |
| AccessibilityTextualContext | (Inherited from NSObject) |
| AccessibilityUserInputLabels | (Inherited from NSObject) |
| Class | (Inherited from NSObject) |
| ClassHandle |
The Objective-C class handle for this class. (Inherited from NSObject) |
| DebugDescription | (Inherited from NSObject) |
| Description | (Inherited from NSObject) |
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from NSObject) |
| IsDirectBinding | (Inherited from NSObject) |
| IsProxy | (Inherited from NSObject) |
| RetainCount | (Inherited from NSObject) |
| Self | (Inherited from NSObject) |
| Superclass | (Inherited from NSObject) |
| SuperHandle |
Handle used to represent the methods in the base class for this NSObject. (Inherited from NSObject) |
| Zone | (Inherited from NSObject) |
Methods
Operators
| Name | Description |
|---|---|
| Equality(UIAppearance, UIAppearance) | |
| Inequality(UIAppearance, UIAppearance) | |