編輯

共用方式為


UIUserInterfaceIdiom Enum

Definition

An enumeration indicating on what kind of device the UI is running.

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public enum UIUserInterfaceIdiom
type UIUserInterfaceIdiom = 
Inheritance
UIUserInterfaceIdiom
Attributes

Fields

Name Value Description
Unspecified -1

Not specified.

Phone 0

The UI should be designed for the iPhone and iPod Touch.

Pad 1

The UI should be designed for an iPad.

TV 2

The UI should be designed for display on a television.

CarPlay 3

The UI should be designed for CarPlay.

Applies to