Constants to specify metrics to use for appearance.
SDKs
- iOS 5.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
typedef enum UIBarMetrics : NSInteger {
...
} UIBarMetrics;
Constants to specify metrics to use for appearance.
SDKs
Framework
typedef enum UIBarMetrics : NSInteger {
...
} UIBarMetrics;
UIBar Metrics Default
Specifies default metrics for the device.
UIBar Metrics Compact
Specifies metrics when using the phone idiom.
UIBar Metrics Default Prompt
Specifies default metrics for the device for bars with the prompt property, such as UINavigation
and UISearch
.
UIBar Metrics Compact Prompt
Specifies metrics for bars with the prompt property when using the phone idiom, such as UINavigation
and UISearch
.
UIBar Metrics Landscape Phone
Specifies metrics for landscape orientation using the phone idiom.
UIBar Metrics Landscape Phone Prompt
Specifies metrics for landscape orientation using the phone idiom for bars with the prompt property, such as UINavigation
and UISearch
.